We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d76ffc1 commit 724aa1fCopy full SHA for 724aa1f
extension/runner_util/inputs_portable.cpp
@@ -36,11 +36,11 @@ Error fill_ones(torch::executor::Tensor tensor) {
36
std::fill( \
37
tensor.mutable_data_ptr<T>(), \
38
tensor.mutable_data_ptr<T>() + tensor.numel(), \
39
- 1); \
+ T(1)); \
40
break;
41
42
switch (tensor.scalar_type()) {
43
- ET_FORALL_REAL_TYPES_AND(Bool, FILL_CASE)
+ ET_FORALL_REALHBBF16_TYPES(FILL_CASE)
44
default:
45
ET_LOG(Error, "Unsupported scalar type %d", (int)tensor.scalar_type());
46
return Error::InvalidArgument;
0 commit comments