jinhongyii commented on code in PR #16088:
URL: https://github.com/apache/tvm/pull/16088#discussion_r1387131420
##########
python/tvm/relax/transform/lazy_transform_params.py:
##########
@@ -118,9 +119,15 @@ class LazyTransformParamsMutator(PyExprMutator):
The module to be transformed
"""
- def __init__(self, mod: IRModule = None) -> None:
+ def __init__(
+ self, fget_item, fset_item, get_item_param, set_item_param, mod:
IRModule = None
+ ) -> None:
super().__init__(mod)
self.mod = mod
+ self.fget_item = fget_item
+ self.get_item_param = get_item_param
Review Comment:
My bad. I forget to add a test on this. The case is that I need to call
`get_item(loader, index)`. Since shard loader is created at runtime and is a
DRef object, it cannot be a stateful callback and I have to modify the
interface of `get_item`. Does this make sense to you?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]