Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

Commit

Permalink
a fixing for gpt-2 subclassing model. (#368)
Browse files Browse the repository at this point in the history
* remove tf2onnx api

* migrate to tf2onnx

* remove tf2onnx test cases and package.

* minor corrections

* update the version and docs

* doc fixing

* a fixing for gpt-2 subclassing model.
  • Loading branch information
wenbingl authored Jan 30, 2020
1 parent 7ac8bbf commit 5df283e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions keras2onnx/_parse_tf.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ def extract_outputs_from_inbound_nodes(model):

def build_layer_output_from_model(model, output_dict, output_names):
if is_subclassing(model):
tf.compat.v1.enable_tensor_equality() # re-enable tensor tensor equality for subclassing model.
return extract_outputs_from_subclassing_model(model, output_dict, output_names)
else:
graph = model.outputs[0].graph
Expand Down

0 comments on commit 5df283e

Please sign in to comment.