when I concatened two databases , this error is displayed
TypeError: expected Tensor as element 0 in argument 0, but got numpy.ndarray
help me
when I concatened two databases , this error is displayed
TypeError: expected Tensor as element 0 in argument 0, but got numpy.ndarray
help me
The error message explains that torch.tensor
s are expected while you are trying to pass numpy arrays.
You can transform arrays to tensors via torch.from_numpy
.
thanks @ptrblck