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

support free eager tensor #89

Merged
merged 1 commit into from
Sep 13, 2022

Conversation

BBuf
Copy link
Contributor

@BBuf BBuf commented Sep 13, 2022

支持带free eager tensor导出onnx。

except:
# For Eager Free Tensor
tensor_value = (
self._param_dict[list(self._param_dict.keys())[0]][key[: key.rfind("out") - 1]]
Copy link
Contributor

@Flowingsun007 Flowingsun007 Sep 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里(捕获free eager tensor)是什么原理?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

根据free eager tensor的name(key)来获取tensor(value)。例子:model-FreeEagerTensor-3/out

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的

@Flowingsun007 Flowingsun007 merged commit 5d1b004 into main Sep 13, 2022
@Flowingsun007 Flowingsun007 deleted the support_free_eager_tensor_export_onnx branch September 13, 2022 12:49
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.

2 participants