Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 137ceb9

Browse filesBrowse files
committed
in the arena, trying things
1 parent a210a3a commit 137ceb9
Copy full SHA for 137ceb9

File tree

Expand file treeCollapse file tree

1 file changed

+2
-14
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-14
lines changed

‎aten/src/ATen/native/sparse/cuda/ComputeSparseTile.h

Copy file name to clipboardExpand all lines: aten/src/ATen/native/sparse/cuda/ComputeSparseTile.h
+2-14Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,6 @@
99
// sparsification, as a bitmask.
1010
// NOTE: Algorithms might select LESS than 8 values in total in some cases.
1111

12-
namespace cutlass {
13-
namespace platform {
14-
template <>
15-
struct numeric_limits<cutlass::bfloat16_t> {
16-
CUTLASS_HOST_DEVICE
17-
static cutlass::bfloat16_t infinity() {
18-
return cutlass::bfloat16_t::bitcast(0x7f80);
19-
}
20-
};
21-
} // namespace platform
22-
} // namespace cutlass
23-
2412
namespace at::native{
2513

2614
template <typename Element, typename Pointwise>
@@ -70,7 +58,7 @@ template <typename Op = IdentityOp>
7058
struct LargestValuesGreedy {
7159
template <typename T>
7260
static CUTLASS_DEVICE T outOfBoundsFillValue() {
73-
return -cutlass::platform::numeric_limits<T>::infinity();
61+
return -std::numeric_limits<T>::infinity();
7462
}
7563

7664
template <typename Tile4x4Accessor>
@@ -130,7 +118,7 @@ template <typename Op = IdentityOp>
130118
struct Causal1122 {
131119
template <typename T>
132120
static CUTLASS_DEVICE T outOfBoundsFillValue() {
133-
return -cutlass::platform::numeric_limits<T>::infinity();
121+
return -std::numeric_limits<T>::infinity();
134122
}
135123

136124
template <typename Tile4x4Accessor>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.