tensorplay.cuda.check_error tensorplay.cuda.check_error(res: int) → None[source] Raise an error if the result of a CUDA runtime API call is not success.