beam icon indicating copy to clipboard operation
beam copied to clipboard

[Task]: Unable to load tensorflow hub models using TFModelHandler

Open AnandInguva opened this issue 1 year ago • 0 comments

What needs to happen?

Try to implement bert from TensorflowHub using TFModelHandlerTensor. I get the error

ValueError: Unable to load the TensorFlow model: 'tuple' object has no attribute 'startswith'. Make sure you've         saved the model with TF2 format. Check out the list of TF2 Models on         TensorFlow Hub - https://tfhub.dev/s?subtype=module,placeholder&tf-version=tf2.

Issue Priority

Priority: 3 (nice-to-have improvement)

Issue Components

  • [X] Component: Python SDK
  • [ ] Component: Java SDK
  • [ ] Component: Go SDK
  • [ ] Component: Typescript SDK
  • [ ] Component: IO connector
  • [ ] Component: Beam YAML
  • [ ] Component: Beam examples
  • [ ] Component: Beam playground
  • [ ] Component: Beam katas
  • [ ] Component: Website
  • [ ] Component: Spark Runner
  • [ ] Component: Flink Runner
  • [ ] Component: Samza Runner
  • [ ] Component: Twister2 Runner
  • [ ] Component: Hazelcast Jet Runner
  • [ ] Component: Google Cloud Dataflow Runner

AnandInguva avatar Feb 12 '24 14:02 AnandInguva