Skip to content

Commit

Permalink
Merge branch 'main' into chunk-cat
Browse files Browse the repository at this point in the history
  • Loading branch information
xytintel authored Nov 19, 2024
2 parents 131e546 + 000d343 commit ae4308c
Show file tree
Hide file tree
Showing 5 changed files with 817 additions and 837 deletions.
3 changes: 2 additions & 1 deletion src/ATen/native/xpu/ForeachReduceOp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ std::vector<Tensor> foreach_tensor_norm_xpu(
at::isComplexType(scalar_type);
});
if (!at::native::can_use_fast_route(tensors) || has_int_or_complex ||
!(p == static_cast<double>(1) || p == static_cast<double>(2))) {
!(p == static_cast<double>(1) || p == static_cast<double>(2) ||
p == std::numeric_limits<double>::infinity())) {
return at::native::foreach_tensor_norm_slow(tensors, ord, dtype);
}
check_foreach_norm_dtype(
Expand Down
Loading

0 comments on commit ae4308c

Please sign in to comment.