pub fn check_shape(
r: &TensorRef,
expected: &[u32],
op: &'static str,
) -> Result<(), TensorRefError>Expand description
Verify a TensorRef matches the expected shape; returns
TensorRefError::ShapeMismatch on mismatch.
pub fn check_shape(
r: &TensorRef,
expected: &[u32],
op: &'static str,
) -> Result<(), TensorRefError>Verify a TensorRef matches the expected shape; returns
TensorRefError::ShapeMismatch on mismatch.