Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions extension/runner_util/inputs_portable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ Error fill_ones(torch::executor::Tensor tensor) {
std::fill( \
tensor.mutable_data_ptr<T>(), \
tensor.mutable_data_ptr<T>() + tensor.numel(), \
1); \
T(1)); \
break;

switch (tensor.scalar_type()) {
ET_FORALL_REAL_TYPES_AND(Bool, FILL_CASE)
ET_FORALL_REALHBF16_TYPES(FILL_CASE)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing boolean. Use ET_FORALL_REALHBBF16_TYPES

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

default:
ET_LOG(Error, "Unsupported scalar type %d", (int)tensor.scalar_type());
return Error::InvalidArgument;
Expand Down
Loading