Closed WFKMSX closed 7 months ago
This is not a bug, per se. The behavior and the error are totally fine: you cannot pass an object as an input to the NN. The question is: why are you passing an np.ndarray of type numpy.object_ to the network?
Closing due to lack of further response on this issue.
python3.10/site-packages/mushroom_rl/approximators/parametric/torch_approximator.py"
torch_args = [torch.astensor(x) if isinstance(x, np.ndarray) else x TypeError: can't convert np.ndarray of type numpy.object. The only supported types are: float64, float32, float16, complex64, complex128, int64, int32, int16, int8, uint8, and bool.