Skip to content

Instantly share code, notes, and snippets.

@kratsg
Created September 9, 2019 21:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kratsg/ac44422c28761c95f5ff0d73f0f6236f to your computer and use it in GitHub Desktop.
Save kratsg/ac44422c28761c95f5ff0d73f0f6236f to your computer and use it in GitHub Desktop.
{"format": "graph-model", "generatedBy": "1.14.0", "convertedBy": "TensorFlow.js Converter v1.2.9", "modelTopology": {"node": [{"name": "GatherV2_3/indices", "op": "Const", "attr": {"value": {"tensor": {"dtype": "DT_INT32", "tensorShape": {"dim": [{"size": "1"}]}}}, "dtype": {"type": "DT_INT32"}}}, {"name": "Log", "op": "Const", "attr": {"value": {"tensor": {"dtype": "DT_FLOAT", "tensorShape": {"dim": [{"size": "1"}]}}}, "dtype": {"type": "DT_FLOAT"}}}, {"name": "strided_slice", "op": "Const", "attr": {"value": {"tensor": {"dtype": "DT_FLOAT", "tensorShape": {"dim": [{"size": "1"}]}}}, "dtype": {"type": "DT_FLOAT"}}}, {"name": "GatherV2_4/indices", "op": "Const", "attr": {"value": {"tensor": {"dtype": "DT_INT32", "tensorShape": {"dim": [{"size": "1"}]}}}, "dtype": {"type": "DT_INT32"}}}, {"name": "GatherV2_5/indices", "op": "Const", "attr": {"dtype": {"type": "DT_INT64"}, "value": {"tensor": {"dtype": "DT_INT64", "tensorShape": {"dim": [{"size": "1"}]}}}}}, {"name": "Log_1", "op": "Const", "attr": {"value": {"tensor": {"dtype": "DT_FLOAT", "tensorShape": {"dim": [{"size": "1"}]}}}, "dtype": {"type": "DT_FLOAT"}}}, {"name": "strided_slice_1", "op": "Const", "attr": {"value": {"tensor": {"dtype": "DT_FLOAT", "tensorShape": {"dim": [{"size": "1"}]}}}, "dtype": {"type": "DT_FLOAT"}}}, {"name": "Sum_2/reduction_indices", "op": "Const", "attr": {"value": {"tensor": {"dtype": "DT_INT32", "tensorShape": {}}}, "dtype": {"type": "DT_INT32"}}}, {"name": "GatherV2_3/axis", "op": "Const", "attr": {"value": {"tensor": {"dtype": "DT_INT32", "tensorShape": {}}}, "dtype": {"type": "DT_INT32"}}}, {"name": "Variable", "op": "Placeholder", "attr": {"dtype": {"type": "DT_FLOAT"}, "shape": {"shape": {"dim": [{"size": "2"}]}}}}, {"name": "GatherV2_3", "op": "GatherV2", "input": ["Variable", "GatherV2_3/indices", "GatherV2_3/axis"], "attr": {"Tindices": {"type": "DT_INT32"}, "Tparams": {"type": "DT_FLOAT"}, "Taxis": {"type": "DT_INT32"}, "batch_dims": {"i": "0"}}}, {"name": "GatherV2_4", "op": "GatherV2", "input": ["Variable", "GatherV2_4/indices", "GatherV2_3/axis"], "attr": {"Taxis": {"type": "DT_INT32"}, "batch_dims": {"i": "0"}, "Tindices": {"type": "DT_INT32"}, "Tparams": {"type": "DT_FLOAT"}}}, {"name": "mul_4", "op": "Mul", "input": ["GatherV2_3", "Log"], "attr": {"T": {"type": "DT_FLOAT"}}}, {"name": "GatherV2_5", "op": "GatherV2", "input": ["GatherV2_4", "GatherV2_5/indices", "GatherV2_3/axis"], "attr": {"Tindices": {"type": "DT_INT64"}, "Tparams": {"type": "DT_FLOAT"}, "Taxis": {"type": "DT_INT32"}, "batch_dims": {"i": "0"}}}, {"name": "sub_2", "op": "Sub", "input": ["mul_4", "strided_slice"], "attr": {"T": {"type": "DT_FLOAT"}}}, {"name": "mul_5", "op": "Mul", "input": ["GatherV2_5", "Log_1"], "attr": {"T": {"type": "DT_FLOAT"}}}, {"name": "Sum_2", "op": "Sum", "input": ["sub_2", "Sum_2/reduction_indices"], "attr": {"keep_dims": {"b": false}, "Tidx": {"type": "DT_INT32"}, "T": {"type": "DT_FLOAT"}}}, {"name": "sub_3", "op": "Sub", "input": ["mul_5", "strided_slice_1"], "attr": {"T": {"type": "DT_FLOAT"}}}, {"name": "Sum_3", "op": "Sum", "input": ["sub_3", "Sum_2/reduction_indices"], "attr": {"T": {"type": "DT_FLOAT"}, "keep_dims": {"b": false}, "Tidx": {"type": "DT_INT32"}}}, {"name": "ConstantFolding/stack_1_const_axis", "op": "Const", "input": ["^Sum_3"], "attr": {"value": {"tensor": {"dtype": "DT_INT32", "tensorShape": {}}}, "dtype": {"type": "DT_INT32"}}}, {"name": "stack_1", "op": "ExpandDims", "input": ["Sum_3", "ConstantFolding/stack_1_const_axis"], "attr": {"T": {"type": "DT_FLOAT"}, "Tdim": {"type": "DT_INT32"}}}, {"name": "Sum_4", "op": "Sum", "input": ["stack_1", "GatherV2_3/axis"], "attr": {"keep_dims": {"b": false}, "Tidx": {"type": "DT_INT32"}, "T": {"type": "DT_FLOAT"}}}, {"name": "stack_2", "op": "Pack", "input": ["Sum_2", "Sum_4"], "attr": {"T": {"type": "DT_FLOAT"}, "axis": {"i": "0"}, "N": {"i": "2"}}}, {"name": "Sum_5", "op": "Sum", "input": ["stack_2", "GatherV2_3/axis"], "attr": {"T": {"type": "DT_FLOAT"}, "keep_dims": {"b": false}, "Tidx": {"type": "DT_INT32"}}}], "library": {}, "versions": {}}, "weightsManifest": [{"paths": ["group1-shard1of1.bin"], "weights": [{"name": "GatherV2_3/indices", "shape": [1], "dtype": "int32"}, {"name": "Log", "shape": [1], "dtype": "float32"}, {"name": "strided_slice", "shape": [1], "dtype": "float32"}, {"name": "GatherV2_4/indices", "shape": [1], "dtype": "int32"}, {"name": "GatherV2_5/indices", "shape": [1], "dtype": "int32"}, {"name": "Log_1", "shape": [1], "dtype": "float32"}, {"name": "strided_slice_1", "shape": [1], "dtype": "float32"}, {"name": "Sum_2/reduction_indices", "shape": [], "dtype": "int32"}, {"name": "GatherV2_3/axis", "shape": [], "dtype": "int32"}, {"name": "ConstantFolding/stack_1_const_axis", "shape": [], "dtype": "int32"}]}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment