trevor-m commented on pull request #7977:
URL: https://github.com/apache/tvm/pull/7977#issuecomment-832334872
Thanks @comaniac
I added an assert to an existing test.
Without this pr, the assert fails:
```
# Params will be stored in metadata module.
> assert len(graph_module.get_params()) == 0
E AssertionError: assert 1 == 0
E + where 1 = len({'ccompiler_0_const_0': <tvm.nd.NDArray
shape=(1,), cpu(0)>\narray([1.], dtype=float32)})
E + where {'ccompiler_0_const_0': <tvm.nd.NDArray shape=(1,),
cpu(0)>\narray([1.], dtype=float32)} = <bound method
GraphExecutorFactoryModule.get_params of
<tvm.relay.backend.graph_executor_factory.GraphExecutorFactoryModule object at
0x7fd7e2831dd8>>()
E + where <bound method GraphExecutorFactoryModule.get_params of
<tvm.relay.backend.graph_executor_factory.GraphExecutorFactoryModule object at
0x7fd7e2831dd8>> =
<tvm.relay.backend.graph_executor_factory.GraphExecutorFactoryModule object at
0x7fd7e2831dd8>.get_params
```
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]