Different Results When Applying The Same Relay Transform: FoldScaleAxis

I don’t think so. FoldConstant behaves the same for both methods just because it is opt_level=2, which is the default level. Passes such as FoldScaleAxis are assigned to higher level for reasons, so you should always use the PassContext to specify the desire opt_level when invoking passes.

1 Like