diff --git a/codegen/api/et_cpp.py b/codegen/api/et_cpp.py index 88f1eb83fe0..a2d86c32c7f 100644 --- a/codegen/api/et_cpp.py +++ b/codegen/api/et_cpp.py @@ -55,8 +55,6 @@ - Executorch doesn't support TensorOptions, however in this file we still keep the logic here to be compatible with torchgen.api.cpp, so that we can do stuff like ATen mode (running ATen kernels in Executorch). - - Executorch doesn't support Dimname. - - Executorch runtime doesn't support SymInt, will treat it as int. """ @@ -141,8 +139,6 @@ def argumenttype_type( # TODO: keeping these special cases for Tensor[] and Tensor?[] so that we can hookup with ATen kernels. if str(t.elem) == "Tensor": return NamedCType(binds, BaseCType(tensorListT)) - elif str(t.elem) == "Dimname": - raise NotImplementedError("Executorch doesn't support Dimname") elif str(t.elem) == "Tensor?": return NamedCType(binds, ArrayRefCType(OptionalCType(BaseCType(tensorT)))) elem = argumenttype_type(t.elem, mutable=mutable, binds=binds)