Skip to main content

validate_tensor_ndim

Function validate_tensor_ndim 

Source
pub fn validate_tensor_ndim(
    actual_ndim: usize,
    expected_ndim: usize,
    op_name: &str,
) -> PyResult<()>
Expand description

Validate that input tensor has expected number of dimensions