From 7fbf71ed407c7935611d412ad89cf248d43e6c8f Mon Sep 17 00:00:00 2001 From: BenkangPeng Date: Fri, 17 Oct 2025 00:25:45 +0800 Subject: [PATCH] [TE][FFI] Remove unused properties from BaseComputeOp and ScanOp classes in tensor.py --- python/tvm/te/tensor.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/python/tvm/te/tensor.py b/python/tvm/te/tensor.py index 11084da0cc7f..4ef1b67969c8 100644 --- a/python/tvm/te/tensor.py +++ b/python/tvm/te/tensor.py @@ -131,16 +131,6 @@ class PlaceholderOp(Operation): class BaseComputeOp(Operation): """Compute operation.""" - @property - def axis(self): - """Represent the IterVar axis, defined when it is a ComputeOp""" - return self.__getattr__("axis") - - @property - def reduce_axis(self): - """Represent axis of reductions, only defined when it is a ComputeOp""" - return self.__getattr__("reduce_axis") - @tvm_ffi.register_object("te.ComputeOp") class ComputeOp(BaseComputeOp): @@ -151,11 +141,6 @@ class ComputeOp(BaseComputeOp): class ScanOp(Operation): """Scan operation.""" - @property - def scan_axis(self): - """Represent the scan axis, only defined when it is a ScanOp""" - return self.__getattr__("scan_axis") - @tvm_ffi.register_object("te.ExternOp") class ExternOp(Operation):