question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TFJS converter unsupported Ops "BatchMatMul"

See original GitHub issue

Hello, I was trying to export a model from tf to tfjs, but I run into this error with tfjs 0.5.2:

Multensorflowjs_converter --input_format=tf_saved_model
 --output_node_names='frozen_graph/my_model/full_output'
 --saved_model_tags=serve 
./tests/model_freezing/model_pipe_frozen/a2018-07-24_13-49-43/
./tests/export_tfjs


> Unsupported Ops in the model
BatchMatMul

It seems the op that create this issue is this one: tf.matmul(point_batch, mat_batch) The model work just fine in python.

The node is created by a tf.Matmul, and this op is said to be handled by tfjs converter.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
annxingyuancommented, Aug 31, 2018

Hey all, wanted to give an update that in the next release of TFjs, matmul will behave the way it does in other Tensorflow languages: input matrices just need to have ranks of >= 2 with identical outer dimensions (item number 1 in the comment above). Thanks for bringing this to our attention!

2reactions
dsmilkovcommented, Aug 25, 2018

Great point @chrisdonahue . Will keep this issue to track two things

  1. generalizing tf.matMul in tfjs-core
  2. Wiring the BatchMatMul op in the tfjs-converter to call the generalized tf.matMul() in core.
Read more comments on GitHub >

github_iconTop Results From Across the Web

List of Unsupported Ops / Priority of ... - Google Groups
I'm trying to convert Universal Sentence Encoders and Elmo from Tensorflow Hub, as shown in this colab doc. Each fail with a number...
Read more >
Supported Tensorflow Ops | tfjs-converter
Convert TensorFlow SavedModel and Keras models to TensorFlow.js.
Read more >
Importing a TensorFlow GraphDef based Models into ...
Convert an existing TensorFlow model to the TensorFlow.js web format ... If your model uses an unsupported op, the tensorflowjs_converter ...
Read more >
UNPKG - @tensorflow/tfjs
node_modules/@tensorflow/tfjs-core/src/ops/array_ops_util.ts",". ... node_modules/@tensorflow/tfjs-converter/node_modules/@protobufjs/aspromise/index.js",".
Read more >
Top 5 tensorflowjs Code Examples - Snyk
tensorflow / tfjs-converter / tfjs-converter / python ... Ops in the model before optimization\n' + ', '.join(unsupported)) # first pass of grappler ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found