fix:error message of to_tensor (#1000)
* fix:error message of to_tensor The error "pic should be PIL Image or ndarray. Got '<numpy.ndarray>'" is confusing. * fix:a clearer function name _is_numpy_image is clearer than _is_numpy_image_dim * fix:add a test case Add a test case in test/test_transforms.py to test the error message * fix:pass ci check * fix:wrong random matrix
Showing
Please register or sign in to comment