TensorFlow: How do I release a model without source code?

后端 未结 2 1930
栀梦
栀梦 2020-12-21 11:42

I am using Tensorflow + Python.

I am curious if I can release a saved Tensorflow model (architecture + trained variables) without detailed source code. I\'m aware of

2条回答
  •  醉话见心
    2020-12-21 12:11

    The TensorFlow Serving project is intended to make this use case straightforward (assuming that the end user is only using the model for inference, not training). TensorFlow Serving includes an Exporter class that takes your tf.train.Saver, the tf.GraphDef that defines your overall model, and a "signature" that describes the inputs to and output from your model.

    The basics tutorial has a good introduction to exporting your model.

提交回复
热议问题