File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
examples/portable/custom_ops Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -19,12 +19,12 @@ namespace {
19
19
void check_preconditions (const Tensor& in, Tensor& out) {
20
20
ET_CHECK_MSG (
21
21
out.scalar_type () == ScalarType::Float,
22
- " Expected out tensor to have dtype Float, but got %hhd instead" ,
23
- out.scalar_type ());
22
+ " Expected out tensor to have dtype Float, but got %d instead" ,
23
+ static_cast < int >( out.scalar_type () ));
24
24
ET_CHECK_MSG (
25
25
in.scalar_type () == ScalarType::Float,
26
- " Expected in tensor to have dtype Float, but got %hhd instead" ,
27
- in.scalar_type ());
26
+ " Expected in tensor to have dtype Float, but got %d instead" ,
27
+ static_cast < int >( in.scalar_type () ));
28
28
ET_CHECK_MSG (
29
29
out.dim () == in.dim (),
30
30
" Number of dims of out tensor is not compatible with inputs" );
You can’t perform that action at this time.
0 commit comments