View graph pb to tflite (Command line)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!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 \ |
View Download IMDB dataset into google colab and extract files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |