datagnosis.plugins.core.utils module#

check_dim(x: Union[Tuple, torch.Tensor, numpy.ndarray, list]) int[source]#

Check the dimension of the input.

Parameters

x (Union[torch.Tensor, np.ndarray, list]) – The input data.

Returns

The number of dimensions of the input data.

Return type

int