This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Python 3.11.8 (main, Feb 6 2024, 21:21:21) [GCC 13.2.0] on linux | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import jax | |
2024-04-08 22:23:25.127712: E external/xla/xla/stream_executor/plugin_registry.cc:91] Invalid plugin kind specified: DNN | |
>>> X = jax.numpy.zeros((5000, 6000)) | |
:1:hip_code_object.cpp :516 : 809713991079 us: [pid:3362424 tid:0x7ffff7eaf740] hipErrorNoBinaryForGpu: Unable to find code object for all current devices! | |
:1:hip_code_object.cpp :517 : 809713991085 us: [pid:3362424 tid:0x7ffff7eaf740] Devices: | |
:1:hip_code_object.cpp :520 : 809713991086 us: [pid:3362424 tid:0x7ffff7eaf740] amdgcn-amd-amdhsa--gfx1100 - [Not Found] | |
:1:hip_code_object.cpp :524 : 809713991091 us: [pid:3362424 tid:0x7ffff7eaf740] Bundled Code Objects: | |
:1:hip_code_object.cpp :540 : 809713991092 us: [pid:3362424 tid:0x7ffff7eaf740] host-x86_64-unknown-linux-- - [Unsupported] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2024 Google LLC. | |
# SPDX-License-Identifier: Apache-2.0 | |
{ | |
description = "Demo of generating a YAML file as a flake output"; | |
outputs = { self, nixpkgs }: let | |
forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed; | |
in { | |
packages = forAllSystems (system: | |
let pkgs = nixpkgs.legacyPackages.${system}; | |
in { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2022 Google LLC. | |
# SPDX-License-Identifier: Apache-2.0 | |
# | |
# Makefile for flashing a nanoCUL stick with evofw3 using arduino-cli. | |
# | |
# Get arduino-cli and make with `nix shell nixpkgs#gnumake nixpkgs#arduino-cli`. | |
# Then run make -f flash-nanocul.mk. | |
# One of atmega328p, atmega32u4. Only tested with atmega328p, the one I have. | |
BOARD=atmega328p |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Take in a CoventryBS grid card as a text file, output regex custom fields for | |
Bitwarden to autofill your grid card challenge for you. | |
""" | |
from __future__ import print_function | |
import fileinput | |
import itertools | |
import sys | |
COLS = 'ABCDEFGHIJ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from theano import tensor | |
def binary_crossentropy_from_logits(logits, targets): | |
"""Binary cross-entropy computed from model logits. | |
Parameters | |
---------- | |
predictions : TensorVariable | |
The unnormalized log probabilities of a probabilistic binary | |
classifier. | |
targets : TensorVariable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import OrderedDict | |
from blocks.algorithms import GradientDescent, Momentum | |
from blocks.bricks import ( | |
MLP, Rectifier, Logistic, Linear, LinearMaxout, Sequence, Random | |
) | |
from blocks.extensions import Printing, Timing | |
from blocks.extensions.training import SharedVariableModifier | |
from blocks.extensions.monitoring import (DataStreamMonitoring, | |
TrainingDataMonitoring) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sshft() { | |
if [ $# -lt 2 ]; then | |
echo "usage: sshft host [port|local:remote|local:bridge:remote] ...]" | |
return 1 | |
fi | |
if [ -z "$DEFAULT_SSH_PROXY_HOST" ]; then | |
echo "No DEFAULT_SSH_PROXY_HOST set." | |
return 1 | |
fi | |
FIRST_SSH_ARGS="$DEFAULT_SSH_PROXY_HOST" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# It's important not to define any classes you want serialized in | |
# the script you're running as pickle doesn't like that (if you pass | |
# save_main_loop=False to Checkpoint it's fine, though). | |
from theano import tensor | |
import numpy | |
import theano | |
from picklable_itertools import imap, izip, repeat | |
# Your algorithm object just needs two required methods: initialize() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Fuel DataStream that segments the epochs of another DataStream.""" | |
__license__ = """ | |
Copyright (c) 2016 Universite de Montreal | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | |
of the Software, and to permit persons to whom the Software is furnished to do |
NewerOlder