Unsupported Ops in the model before optimization TensorScatterUpdate
See original GitHub issueSystem information
- TensorFlow.js version (you are using): 2.7.0
Describe the feature and the current behavior/state.
TensorScatterUpdate
is not supported.
2020-11-11 18:40:06.492416: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN)to use the following CPU instructions in performance-critical operations: AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2020-11-11 18:40:06.505295: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7f9a9af053e0 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2020-11-11 18:40:06.505339: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version
2020-11-11 18:40:09.047157: I tensorflow/core/grappler/devices.cc:78] Number of eligible GPUs (core count >= 8, compute capability >= 0.0): 0 (Note: TensorFlow was not compiled with CUDA or ROCm support)
2020-11-11 18:40:09.047227: I tensorflow/core/grappler/clusters/single_machine.cc:356] Starting new session
2020-11-11 18:40:10.009017: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:816] Optimization results for grappler item: graph_to_optimize
2020-11-11 18:40:10.009041: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:818] function_optimizer: Graph size after: 11186 nodes (10781), 18356 edges (17949), time = 611.069ms.
2020-11-11 18:40:10.009047: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:818] function_optimizer: function_optimizer did nothing. time = 27.527ms.
Traceback (most recent call last):
File "/Users/waittim/anaconda3/envs/tfjs_convert/bin/tensorflowjs_converter", line 8, in <module>
sys.exit(pip_main())
File "/Users/waittim/anaconda3/envs/tfjs_convert/lib/python3.6/site-packages/tensorflowjs/converters/converter.py", line 757, in pip_main
main([' '.join(sys.argv[1:])])
File "/Users/waittim/anaconda3/envs/tfjs_convert/lib/python3.6/site-packages/tensorflowjs/converters/converter.py", line 761, in main
convert(argv[0].split(' '))
File "/Users/waittim/anaconda3/envs/tfjs_convert/lib/python3.6/site-packages/tensorflowjs/converters/converter.py", line 699, in convert
experiments=args.experiments)
File "/Users/waittim/anaconda3/envs/tfjs_convert/lib/python3.6/site-packages/tensorflowjs/converters/tf_saved_model_conversion_v2.py", line 629, in convert_tf_saved_model
initializer_graph=frozen_initializer_graph)
File "/Users/waittim/anaconda3/envs/tfjs_convert/lib/python3.6/site-packages/tensorflowjs/converters/tf_saved_model_conversion_v2.py", line 146, in optimize_graph
', '.join(unsupported))
ValueError: Unsupported Ops in the model before optimization
TensorScatterUpdate
Any Other info. The SavedModel is converted from the onnx model(opset_version=11). You can find the model I used here. The output node names are ‘StatefulPartitionedCall,StatefulPartitionedCall_1,StatefulPartitionedCall_2’. It’s a yolo model. May I know is there any other possible solution besides waiting for the support? Thank you!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:10
Top Results From Across the Web
Why Unsupported Ops in the model before optimization ...
I tested TensorFlow 1.11 and 1.12, I use TFRecordDataset and an Iterator but I have no idea why Op 'IteratorV2' and not Op...
Read more >Tensorflowjs Conversion Error: "ValueError: Unsupported Ops"
Wrt NonMaxSuppression, it appears for the first time in v0. 5.6, it is possible that the OP has an older version.
Read more >tf.lite.TFLiteConverter | TensorFlow v2.11.0
Converts a TensorFlow model into TensorFlow Lite model. ... Specifications of target device, including supported ops set, supported types ...
Read more >tfjs-converter - GitHub Pages
Convert TensorFlow SavedModel and Keras models to TensorFlow.js. ... script will fail and produce a list of the unsupported ops in your model....
Read more >op - Go Packages
Package op defines functions for adding TensorFlow operations to a ... a shard op before the inputs to a reader Dataset (e.g. CSVDataset, ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hope this implemented soon as well!
For those having problems with this code here’s the fix! I actually tested it and it works.