Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
308 views
in Technique[技术] by (71.8m points)

In Tensorflow how to feed a tensor to a pre-trained model and get the output tensor while I'm in the process of builing the graph?

I have the checkpoint of a pre-trained model. I want to feed a tensor to this model as the input and get the output features (tensor). I don't want to restore the model using saver.restore and run the session. Coz I'm in the training process and the only thing that I have is tensor (without value) and need tensor as the output. Is there any way to do that with checkpoints? As far as I know, we can do the same when we have .pb model, but not sure if we can extract features (in tensor) from .ckpt as well.

question from:https://stackoverflow.com/questions/65919411/in-tensorflow-how-to-feed-a-tensor-to-a-pre-trained-model-and-get-the-output-ten

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...