File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -983,7 +983,7 @@ def _emit_scan(
983983
984984 assert isinstance (
985985 subemitter_binding_output_values , (list , tuple )
986- ), f"Expected list for subemitter_binding_output_values. Got { subemitter_binding_output_values } ."
986+ ), f"Expected list for subemitter_binding_output_values. Got { type ( subemitter_binding_output_values ). __name__ } : { subemitter_binding_output_values } ."
987987
988988 assert isinstance (combine_fn , torch .fx .GraphModule )
989989 assert isinstance (init , (list , tuple ))
@@ -997,7 +997,7 @@ def _emit_scan(
997997 y_outputs = list (subemitter_binding_output_values [num_carry :])
998998
999999 if num_xs < 1 :
1000- raise RuntimeError ("Scan requires at least one xs tensor to scan over. " )
1000+ raise RuntimeError (f "Scan requires at least one xs tensor to scan over but got { num_xs } " )
10011001
10021002 iter_idx = self ._emit_evalue (EValue (Int (0 )))
10031003
You can’t perform that action at this time.
0 commit comments