question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Export/Server tensor2tensor as a .pb file instead of .pbtxt

See original GitHub issue

Description

I would like to know how to export the tensor2tensor serving as a .pb file, rather than a .pbtxt file.

Alternately, how can I get the output node names from the checkpoints/.pbtxt file? …

tensor2tensor==1.6.3 tensorflow==1.8.0

OS: CentOS

Python 2.7.5

For bugs: reproduction and error logs

# Steps to reproduce:
...
# Error logs:
...

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
hhxxttxshcommented, Oct 15, 2018

@marcbelmont Is it possible to freeze the savedmodel files (.pbtxt and variables) into .pb for mobile or embedded applications? I have got the same error in the process of doing that: google.protobuf.text_format.ParseError: 1:1 : Message type “tensorflow.GraphDef” has no field named “saved_model_schema_version”.

5reactions
ndvbdcommented, Jul 20, 2018

@Littlenova, I tried it and it says:

google.protobuf.text_format.ParseError: 1:1 : Message type "tensorflow.GraphDef" has no field named "saved_model_schema_version".

I tried it on the .pbtxt which was created using tensor2tensor.serving.export

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can we use .pbtxt instead of .pb file in using Tensor flow model
If the .pbtxt file is really a textual representation of the TensorFlow graph, then no, the Android APIs currently do not accept that...
Read more >
Convert .pb file into frozen .pb file - Google Groups
The code was not running within Jupyter notebooks, but kinda works from my computer when I replaced ['softmax'] with output_nodes = [n.name for...
Read more >
Tensorflow: How to load/restore a FULL model (.pb, .pbtxt ...
I recently switched from PyTorch to TF (1 and 2) and I am trying to acquire a good workflow with it. The simple...
Read more >
导出/服务器Tensor2tensor作为.pb文件而不是.pbtxt - 第2页
Export/Server tensor2tensor as a .pb file instead of .pbtxt. 描述. 我想知道如何将作为.pb文件的tensor2tensor导出,而不是.pbtxt文件。
Read more >
View a graphDef .pb or .pbtxt file with TensorBoard
It can be really useful to be able to view a TensorFlow graphDef file in TensorBoard. ... Import a protobuf graph (.pb or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found