From cd03dbcc6d1515258d7421e8397f1a4c75668b2d Mon Sep 17 00:00:00 2001 From: Eric Lunderberg Date: Wed, 14 Feb 2024 10:19:36 -0600 Subject: [PATCH] Lint fix The `span` field was only ever used to construct a TIR constant with a known span, wasn't used at any of its callsites. --- python/tvm/runtime/object_generic.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/python/tvm/runtime/object_generic.py b/python/tvm/runtime/object_generic.py index 32962dc872307..2fd80bb78afd7 100644 --- a/python/tvm/runtime/object_generic.py +++ b/python/tvm/runtime/object_generic.py @@ -38,7 +38,7 @@ def asobject(self): ObjectTypes = (ObjectBase, NDArrayBase, Module, ObjectRValueRef, PackedFuncBase, PyNativeObject) -def convert_to_object(value, span=None): +def convert_to_object(value): """Convert a Python value to corresponding object type. Type conversions performed by this function must *only* produce @@ -54,9 +54,6 @@ def convert_to_object(value, span=None): value : str The value to be inspected. - span : Optional[Span] - The location of this itervar in the source code. - Returns ------- obj : Object