pub fn check_tensor_error() -> Result<(), TensorError>Expand description
Check the tensor co-processor error register and return a typed result.
Returns Ok(()) when no fault has been latched. Returns Err(TensorError)
containing the raw CSR value otherwise. Call after tensor_wait to verify
that the preceding tensor operation completed without fault. Named bit
accessors on TensorError will be added once PRM Table 9-3 bit positions
are confirmed on hardware.
ยงExample
tensor_wait(TensorEvent::Fma);
check_tensor_error().expect("TensorFMA fault");