We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi AIT team:
Sorry to bring up this stupid question, but does AIT handles if/else in the forward function? For example
if x2.mean() > 0: x = x + x2 else: x = x - x2
If I supply x2 with positive mean when compiling, will the compiled model work with both branches?
x2
Thanks!
The text was updated successfully, but these errors were encountered:
Hi Jiang, is x2 produced by an operator on the graph? If yes, then that's data-dependent control flow and AIT doesn't support that.
One workaround I can think of is this:
x = x + x2 * sign(x2.mean())
Sorry, something went wrong.
No branches or pull requests
Hi AIT team:
Sorry to bring up this stupid question, but does AIT handles if/else in the forward function?
For example
If I supply
x2
with positive mean when compiling, will the compiled model work with both branches?Thanks!
The text was updated successfully, but these errors were encountered: