FredZhang7 commited on
Commit
441f679
1 Parent(s): 031e499

upload tensorflow files

Browse files
.gitattributes CHANGED
@@ -35,3 +35,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  tiny-tensorflow/bert-tiny-multilingual/variables/variables.data-00000-of-00001 filter=lfs diff=lfs merge=lfs -text
37
  tiny-tensorflow/toxicity-tfjs/tfnapi-v8/tensorflow.dll filter=lfs diff=lfs merge=lfs -text
 
 
 
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  tiny-tensorflow/bert-tiny-multilingual/variables/variables.data-00000-of-00001 filter=lfs diff=lfs merge=lfs -text
37
  tiny-tensorflow/toxicity-tfjs/tfnapi-v8/tensorflow.dll filter=lfs diff=lfs merge=lfs -text
38
+ tiny-tensorflow/bert-small-multilingual/variables/variables.data-00000-of-00001 filter=lfs diff=lfs merge=lfs -text
39
+ tiny-tensorflow/custom-tiny-multilingual/variables/variables.data-00000-of-00001 filter=lfs diff=lfs merge=lfs -text
tiny-tensorflow/bert-small-multilingual/saved_model.pb ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8628dedb81b36f8714b0dc63adaf8cbe7ddd5d1ad450198a62b8d9ee025900c3
3
+ size 6434075
tiny-tensorflow/bert-small-multilingual/variables/variables.data-00000-of-00001 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a70f759e852115efc89fbf8037177be116185d39e7dac4f4691d890681d31f4
3
+ size 418847501
tiny-tensorflow/bert-small-multilingual/variables/variables.index ADDED
Binary file (21.1 kB). View file
 
tiny-tensorflow/custom-tiny-multilingual/saved_model.pb ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84cb4153c11646eb331f7707570b8b3abe1f57ae5919c0bec80990ac6c4e8961
3
+ size 14166066
tiny-tensorflow/custom-tiny-multilingual/variables/variables.data-00000-of-00001 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dcddc18a03c9cf78e873c24440335a972bdb6a266b7fe8e5edceb87fb95809e4
3
+ size 755860212
tiny-tensorflow/custom-tiny-multilingual/variables/variables.index ADDED
Binary file (13.8 kB). View file
 
tiny-tensorflow/predict.js CHANGED
@@ -1,7 +1,7 @@
1
  async function run() {
2
- const { vitchen_toxicity_encode } = require('./bert-tiny-multilingual/bert-tokenizer');
3
- const {loadSavedModel, tensor} = require('./bert-tiny-multilingual/node');
4
- const model = await loadSavedModel('./toxicity9');
5
  const input = vitchen_toxicity_encode(`What's up?`);
6
  let t = tensor(input, [192], 'int32');
7
  const prediction = model.predict({
 
1
  async function run() {
2
+ const { vitchen_toxicity_encode } = require('./toxicity-tfjs/bert-tokenizer');
3
+ const {loadSavedModel, tensor} = require('./toxicity-tfjs/node');
4
+ const model = await loadSavedModel('./bert-small-multilingual');
5
  const input = vitchen_toxicity_encode(`What's up?`);
6
  let t = tensor(input, [192], 'int32');
7
  const prediction = model.predict({