Skip to content
Open
Changes from all commits
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: 4 additions & 0 deletions backends/cadence/fusion_g3/operators/op_mean.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
Expand Down Expand Up @@ -151,6 +151,7 @@
p_axis,
num_axis_dims);
} else {
#ifdef G3_ENABLE_ALL_DTYPES
ET_KERNEL_CHECK(
ctx,
torch::executor::check_mean_dim_args(in, dim_list, keepdim, dtype, out),
Expand Down Expand Up @@ -183,6 +184,9 @@
}
});
});
#else
ET_DCHECK_MSG(false, "mean.out: non-float dtypes require G3_ENABLE_ALL_DTYPES");
#endif
}

return out;
Expand Down
Loading