Skip to content

Does AIT handle if/else in forward function? #983

@jiangwei221

Description

@jiangwei221

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?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions