Lunderberg commented on issue #17269: URL: https://github.com/apache/tvm/issues/17269#issuecomment-2299628244
I assume there's a typo and that `cls.transform_params_7` is supposed to be `cls.transform_params_2`. With that, I can reproduce your error. It looks like this is a limitation in the `LazyTransformParams`, that it expects a tuple of outputs to be produced within the function, rather than being a return value from a subroutine. * Use `LazyGetInput` and `LazySetOutput`, which are intended to replace `LazyTransformParams`. These add callback arguments rather than performing lazy-loading through the global `"get_item"` or `"set_item"` functions, and don't have the same limitations for tuple outputs. * If you only need `transform_params` and not `transform_params_2`, you could mark `transform_params_2` as private, then use `relax.transform.InlinePrivateFunctions()`. This would move the `(D,D)` tuple into `transform_params`, working around the current limitation of `LazyTransformParams`. -- 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]
