Tensorflow: v0.11.0rc2 OS: CENTOS 6.8 (No root access)
- The
tensorboardSLURM.sh
can be run with the following command to start a tensorboard server on a SLURM cluster:
sbatch --array=0-0 tensorboardSLURM.sh
#![feature(core_intrinsics)] | |
#[warn(dead_code)] | |
//#[warn(unused_assignments)] | |
extern crate mmap; | |
extern crate libc; | |
use libc::*; | |
use std::ffi::CString; | |
use std::path::Path; | |
use mmap::{MemoryMap,MapOption}; |
/* | |
* Demonstration of the BeagleBone's PRU, using a timer. | |
* Ken Shirriff, http://righto.com | |
*/ | |
#include <stdint.h> | |
#define DELAY_NS 100 // Use 500000000 for 0.5 second delay | |
#define WRITE_PIN 15 /* P8_11, Ethernet output data, pr1_PRU0_pru_r30_15 */ | |
// PRU Interrupt control registers |
""" | |
The default tf.Print op goes to STDERR | |
Use the function below to direct the output to stdout instead | |
Usage: | |
> x=tf.ones([1, 2]) | |
> y=tf.zeros([1, 3]) | |
> p = x*x | |
> p = tf_print(p, [x, y], "hello") | |
> p.eval() | |
hello [[ 0. 0.]] |
function [ B, C, D ] = NearestKroneckerProduct( A, SizeB, SizeC, Hermitian ) %#codegen | |
% https://doi.org/10.1007/978-94-015-8196-7_17 | |
m = size( A, 1 ); | |
n = size( A, 2 ); | |
m1 = SizeB( 1 ); | |
n1 = SizeB( 2 ); | |
m2 = SizeC( 1 ); | |
n2 = SizeC( 2 ); | |
if nargin < 4 |
This is a simple repl integration for the helix editor. It relies on on tmux to show the repl in a separate pane and on jupyter (jupyter-console and whatever jupyter kernels you might like) to run the actual repl.
#!/bin/bash | |
set -e # Exit on any error | |
# Check if required arguments are provided | |
if [ -z "$REGION" ] || [ -z "$SECURITY_GROUPS" ] || [ -z "$KEY_PAIR" ] || [ -z "$SUBNET" ]; then | |
echo "Error: You must provide REGION, SECURITY_GROUPS, KEY_PAIR, and SUBNET as environment variables." | |
echo "Example:" | |
echo " export REGION=us-east-1" | |
echo " export SECURITY_GROUPS=sg-12345678,sg-87654321" | |
echo " export KEY_PAIR=my-key-pair" |