Install FIO on Ubuntu/Debian:
sudo apt update
sudo apt install -y fio lshw
Install FIO on Fedora:
Install FIO on Ubuntu/Debian:
sudo apt update
sudo apt install -y fio lshw
Install FIO on Fedora:
// SmoothStep implementation in Apple Swift | |
// Based on Wikipedia page https://en.wikipedia.org/wiki/Smoothstep | |
import Foundation | |
// Returns the input value clamped to the lower and higher limits | |
func clamp<T: Comparable>(value: T, low: T, high: T) -> T { | |
return min(max(value, low), high) | |
} |
""" | |
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
BSD License | |
""" | |
import numpy as np | |
# data I/O | |
data = open('input.txt', 'r').read() # should be simple plain text file | |
chars = list(set(data)) | |
data_size, vocab_size = len(data), len(chars) |
while { | |
let x = foo(); | |
bar(x); | |
x != 0 | |
} {} | |