poprox_recommender.pytorch.datachecks#
Data-checking routines.
Functions
|
Check that a tensor is of the expected size, and fail with an assertion error if it is the incorrect size. |
- poprox_recommender.pytorch.datachecks.assert_tensor_size(tensor, *size, label=None, prefix=True)#
Check that a tensor is of the expected size, and fail with an assertion error if it is the incorrect size.