Open carlini opened 3 years ago
One possible solution - if function is called with SharderDeviceArray
then it must be replicated.
In the example above - mod.__call__
checks whether input is SharderDeviceArray
or not. If it is SharderDeviceArray
then exception is thrown saying that user have to call objax.Parallel
Currently if you call replicate() and then don't use Parallel() to call a function, you get a bad error message. Try this code:
the error says
which obviously means that you accidentally are evaluating a function that was replicated without wrapping in Parallel.