Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extracting the graph #3

Open
Wonder1905 opened this issue Mar 1, 2020 · 3 comments
Open

Extracting the graph #3

Wonder1905 opened this issue Mar 1, 2020 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@Wonder1905
Copy link

Since it's tf2, it's much harder for me to extract the forward graph (also the backward), can you help us with that?

@akanyaani
Copy link
Owner

Hi @BattashB,

Sorry for my late reply, Can you elaborate the issue?

Thanks

@akanyaani akanyaani self-assigned this Apr 14, 2020
@akanyaani akanyaani added the question Further information is requested label Apr 14, 2020
@ray1422
Copy link

ray1422 commented Apr 15, 2020

how about use tf.saved_model ?

@akanyaani
Copy link
Owner

Hi @ray1422

#you can run this it will give .PB format of model.

tf.saved_model.save(gpt2_model, model_path)
#Run this line if you get some signature related error.

input_signature = #Your input tesnor signature
model._set_inputs(input_signature)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants