Skip to content

Instantly share code, notes, and snippets.

View StanislawAntol's full-sized avatar

Stanislaw Antol StanislawAntol

View GitHub Profile
#!/usr/bin/python3
from sys import exit
from sys import stdout
from sys import path as syspath
from os import path as osp
from os import stat, makedirs
import argparse
from shutil import copyfile
@StanislawAntol
StanislawAntol / git-lfs-migrate_issue.sh
Created September 1, 2017 22:21
git-lfs-migrate Directory Issue
git --version
git lfs
GIT_TRACE=1
REPO_DIR=${HOME}/tmp/repo
EXT=bin
start_dir=`pwd`
DIRS=("" dir/)
for DIR in "${DIRS[@]}";
git version 2.14.2
git-lfs/2.3.4 (GitHub; linux amd64; go 1.8.1)
git version 2.14.2
LocalWorkingDir=
LocalGitDir=
LocalGitStorageDir=
LocalMediaDir=
LocalReferenceDir=
TempDir=/tmp/git-lfs
@StanislawAntol
StanislawAntol / main.cpp
Created January 25, 2018 20:22
Baidu MDL SqueezeNet-related Bug Program
#include <iostream>
#include <dirent.h>
#include "net.h"
#include "base/matrix.h"
#include "loader/loader.h"
#include "math/gemm.h"
using namespace std;
@StanislawAntol
StanislawAntol / add_maximum_to_tflite.diff
Created February 15, 2018 23:18
Add support for tf.maximum to TensorFlowLite (v1.6.0-rc1)
From a17ed8b28455874e7bd42a9c4f784790d771be7c Mon Sep 17 00:00:00 2001
From: Stanislaw Antol <[email protected]>
Date: Thu, 15 Feb 2018 14:29:39 -0800
Subject: [PATCH] TFLite patch for tf.maximum
---
tensorflow/contrib/lite/kernels/BUILD | 1 +
.../kernels/internal/reference/reference_ops.h | 29 +
tensorflow/contrib/lite/kernels/register.cc | 2 +
tensorflow/contrib/lite/kernels/tfmaximum.cc | 108 +