Skip to content

TensorFlowJS Unsupported Ops needed for Yahoo's Open NSFW Model #433

Closed
@tomslick

Description

@tomslick

To get help from the community, check out our Google group.

TensorFlow.js version

tensorflowjs 0.4.1
(installed via pip install tensorflowjs on June 13, 2018)

Browser version

N/A

Describe the problem or feature request

I attempted to convert the TensorFlow model of Yahoo's Open NSFW model found here with tensorflowjs-convert. (First, I exported the TensorFlow .npy file into a Frozen Model and also a Saved Model.)

For the Frozen Model, I ran:

tensorflowjs_converter --input_format=tf_frozen_model --output_node_names='fc_nsfw/BiasAdd' --saved_model_tags=serve frozen_open_nsfw.pb web_model

and received the following message:

Unsupported Ops in the model
TensorArrayWriteV3, TensorArrayV3, DecodeBase64, TensorArrayScatterV3, TensorArrayReadV3, EncodeJpeg, Assert, All, TensorArraySizeV3, DecodeJpeg, Unpack, TensorArrayGatherV3

Running on the Saved Model also results in the same Unsupported Ops list.

Request: Please add my vote to support these Ops

  • TensorArrayWriteV3
  • TensorArrayV3
  • DecodeBase64
  • TensorArrayScatterV3
  • TensorArrayReadV3
  • EncodeJpeg
  • Assert
  • All
  • TensorArraySizeV3
  • DecodeJpeg
  • Unpack (I noticed this was added earlier today but not yet in the latest pip installed version)
  • TensorArrayGatherV3

Thanks!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions