Skip to content

Commit 93012d2

Browse files
Revert "[forward fix] add support for MemoryFormat after type tightening (pytorch#154658)"
This reverts commit 0fdd568. Reverted pytorch#154658 on behalf of https://github.com/facebook-github-bot due to Diff reverted internally ([comment](pytorch#154658 (comment)))
1 parent 5130ac6 commit 93012d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/_inductor/codegen/cpp_wrapper_cpu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2388,7 +2388,7 @@ def c_type_for_prim_type(self, val, type_) -> str:
23882388
return "int64_t"
23892389
elif isinstance(
23902390
type_, (torch.BoolType, torch.SymBoolType, torch.EnumType)
2391-
) or repr(type_) in ("ScalarType", "Layout", "MemoryFormat"):
2391+
) or repr(type_) in ("ScalarType", "Layout"):
23922392
return "int32_t"
23932393
elif isinstance(type_, torch.FloatType):
23942394
return "double"

0 commit comments

Comments
 (0)