Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

TracerWarning #230

Open
maingoc1605 opened this issue Aug 14, 2023 · 0 comments
Open

TracerWarning #230

maingoc1605 opened this issue Aug 14, 2023 · 0 comments

Comments

@maingoc1605
Copy link

when i using torch.jit.trace to convert model, i have this warning. How can i turn off this warning
TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
assert condition, message

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant