Skip to content

Instantly share code, notes, and snippets.

Валерий
тут на голландском и французском в целом разговаривают
20.12.14
но на работе на английском
я в University of Antwerp
типа phd-студент
Сергей
Валерий
тут на голландском и французском в целом разговаривают
но на работе на английском
я в University of Antwerp
типа phd-студент
Валерий
тут на голландском и французском в целом
разговаривают
но на работе на английском
я в University of Antwerp
типа phd-студент
@sergei-mironov
sergei-mironov / Dockerfile.android
Created August 21, 2018 13:59
Dockerfile.android
FROM ubuntu:16.04
RUN apt-get update --fix-missing
COPY install/ubuntu_install_core.sh /install/ubuntu_install_core.sh
RUN bash /install/ubuntu_install_core.sh
COPY install/ubuntu_install_java.sh /install/ubuntu_install_java.sh
RUN bash /install/ubuntu_install_java.sh
from os import environ
from os.path import isfile, join
from typing import List,Tuple
from time import strftime, perf_counter
from tensorflow.gfile import FastGFile
from tensorflow.summary import FileWriter
from tensorflow import Graph,GraphDef
from tensorflow.python.ops import variables
@sergei-mironov
sergei-mironov / WriteBetaIssues.md
Last active October 20, 2018 16:58
WriteBeta issues

WriteBeta Issues

WriteBeta v2.0.10, BuildID 891

Document list view

  • Default icon size was too large. Toolbar buttons were barely visible
  • Document list looses its position (scrolls to top) after some operations, e.g. document renaming
  • 'Rename document' dialog cant be seen beyound the keyboard if the phone is in its landscape orientation (Samsung Galaxy Note 4)
@sergei-mironov
sergei-mironov / tvm1.cpp
Created October 27, 2018 09:25
Lowered function call example
/*
Build and execute like this:
g++ -std=c++14 tvm1.cpp -ltvm -o tvm1.gen
tvm1.gen > tvm1.s
*/
#include <random>
#include <iomanip>
#include <array>
@sergei-mironov
sergei-mironov / sigmoid.cpp
Created December 4, 2018 20:05
Sigmoid problem illustration
/*
g++ -std=c++14 sigmoid.cpp -ltvm -o sigmoid.gen
sigmoid.gen > sigmoid.s
*/
#include <random>
#include <iomanip>
#include <array>
#include <exception>
@sergei-mironov
sergei-mironov / lstm2-latest.py
Created December 11, 2018 14:28
lstm2-latest.py
# Original version from Dmitry Murygin's repo
#
import tvm
import topi
import numpy as np
import time
# Import MNIST data
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("/tmp/data/", one_hot=True)
@sergei-mironov
sergei-mironov / lstm.py
Created December 27, 2018 11:40
Build time measurements
#!/usr/bin/python3
'''
Running: "./lstm.py <num_timesteps>"
'''
import tvm
import topi
import numpy as np
import time
import sys