What is the ideal way to have tensorflow model server recognize my custom operation?
I have a custom operation written following this guide: https://www.tensorflow.org/guide/extend/op
I'm able to use the opp by calling tf.load_op_library
, but when I try and and run tensorflow_model_server
tensorflow_model_server --port=9000 \
--model_name=mymodel \
--model_base_path=/serving/mymodel
I get the following error about being unable to find my opp.
tensorflow_serving/util/retrier.cc:37] Loading servable: {name: mymodel version: 1} failed: Not found: Op type not registered 'MyOpp' in binary running on c37a4ef2d4b4.
Did you add your op lib in BUILD file where you want to call it?