File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -637,10 +637,15 @@ def _dup_fake_script_obj(fake_flat_args):
637637
638638 if fw_metadata .num_intermediate_bases > 0 :
639639 assert not req_subclass_dispatch , f"""\
640- torch.compile is currently being used with tensor subclass inputs:
641- { "," .join ([str (type (x )) for x in fake_flat_args ])} . We are attempting to a compile a graph with two graph outputs
642- that alias one another, which is currently unsupported in the subclass use case. If you run into this,
643- please file a github issue"""
640+ torch.compile is currently being used with tensor subclass inputs.
641+ We are attempting to a compile a graph with two graph outputs
642+ that alias one another, specifically output indices:
643+
644+ { [i for i , x in enumerate (fw_metadata .output_info ) if x .output_type == OutputType .alias_of_intermediate ]}
645+
646+ ANY output aliasing (even for regular tensors) is currently unsupported if
647+ there are any subclass outputs. If you run into this, please file a github
648+ issue"""
644649
645650 if aot_config .is_export :
646651 # aot_export: ban input metadata mutations for now to keep shared code paths simpler.
You can’t perform that action at this time.
0 commit comments