Skip to content

Instantly share code, notes, and snippets.

Avatar

Kareem Abdelsalam El-Ghandour karimamd

View GitHub Profile
View graph pb to tflite (Command line)
!toco \
--graph_def_file=output_graph.pb \
--output_file=xd_graph.tflite \
--output_format=TFLITE \
--input_shape=32,256,192,3 \
--input_array= NAME OF INPUT MODEL OF YOUR MODEL \
--output_array= NAME OF OUTPUT LAYER OF YOUR MODEL \
--inference_type=FLOAT \
--inference_input_type=FLOAT \
@karimamd
karimamd / Download IMDB dataset into google colab and extract files
Last active Mar 29, 2018
Code to put in a code cell in Google's colaboratory/jupyter notebooks to download and extract IMDB's reviews dataset and have a final folder that you can manipulate through code or linux commands
View Download IMDB dataset into google colab and extract files
!rm -rf datalab
!wget http://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz
!ls
!uncompress aclImdb_v1.tar.gz
!tar -xvf aclImdb_v1.tar
!rm aclImdb_v1.tar
!ls
View Cparser.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
char** str_split(char* a_str, const char a_delim)
{
char** result = 0;
size_t count = 0;
char* tmp = a_str;