Skip to content

Instantly share code, notes, and snippets.

View t-vi's full-sized avatar
🌍
Creating fun and friendly AIs

Thomas Viehmann t-vi

🌍
Creating fun and friendly AIs
View GitHub Profile
@t-vi
t-vi / benchmarking.py
Last active October 18, 2018 12:09
native batch norm
import torch
import pickle
import math
print ("git revision:", torch.__version__)
with open('/tmp/1.0.0a0-058c128_timings.pkl', "rb") as f:
reference_timings_dict = pickle.load(f)
print ("""
input shape = (bs, channels) + features
mode = (training/eval)-(forward+backward)/forward
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@t-vi
t-vi / speech_command_recognition_quantization_full.ipynb
Created July 19, 2021 10:51
Code for Training an Edge Optimized Speech Recognition Model with PyTorch Lightning
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.