xlnet-Pytorch
xlnet-Pytorch copied to clipboard
TypeError:can't convert np.ndarray of type numpy.bool_
Traceback (most recent call last):
File "main.py", line 89, in
TypeError: can't convert np.ndarray of type numpy.bool_. The only supported types are: double, float, float16, int64, int32, and uint8
Having the same issue.
is_masked = torch.ByteTensor(feature.pop("is_masked").copy().astype(np.uint8))
@menggehe