Skip to content

Commit 79cad09

Browse files
committed
dont overrun the line
1 parent abf8b6b commit 79cad09

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

advanced_source/dispatcher.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,8 @@ the safest choice for the execution type:
293293
294294
Tensor my_multiple_input_op_autocast(const Tensor& t0, const Tensor& t1) {
295295
c10::impl::ExcludeDispatchKeyGuard no_autocast(c10::DispatchKey::Autocast);
296-
auto exec_type = at::autocast::promote_type(at::kHalf/*optimistic initial guess*/, t0, t1);
296+
// The required at::kHalf argument is an optimistic initial guess.
297+
auto exec_type = at::autocast::promote_type(at::kHalf, t0, t1);
297298
return my_multiple_input_op(at::autocast::cached_cast(exec_type, t0),
298299
at::autocast::cached_cast(exec_type, t1));
299300
}

0 commit comments

Comments
 (0)