Skip to content

Save models as functions - #102

Closed
karllessard wants to merge 4 commits into
tensorflow:shared-saved-modelfrom
karllessard:shared-saved-model
Closed

karllessard wants to merge 4 commits into
tensorflow:shared-saved-modelfrom
karllessard:shared-saved-model

Conversation

@karllessard

@karllessard karllessard commented Aug 24, 2020 •

Copy link
Copy Markdown
Collaborator

The following changes has been applied:

  • TfFunction has been renamed to FunctionGraph (because everything is implicitly TfSomething. I'm not sure though about FunctionGraph, just Function would have been better but conflicts with the SDK).
  • Functions carries their own signature and session for execution.
  • A saved model loads/exports one or more functions (session-centric only for now, meaning that all functions are just different signatures to the main graph. "Real" function graphs will be supported later).
  • Adding a graph variable saver for storing checkpoints on training or export

See #101

Shajan and others added 3 commits August 4, 2020 20:50
…ow#89)

Python models that contain tf.function is inconvenient to be consumed by Java clients.
This proposal provides an API to
(a) Invoke a tf.function, given the signature name
(b) Retrieve the node name in the graph corresponding to a tf.function

Co-authored-by: Shajan Dasan <sdasan@twitter.com>
# Conflicts:
#	tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/Ops.java
#	tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/SavedModelBundle.java
@googlebot

Copy link
Copy Markdown

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants