This commit is contained in:
Srinath Kailasa
2025-07-30 22:14:54 -04:00
committed by GitHub
parent 6fb5e667c1
commit 3b054767b3
3 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ and destroying the `Tensor` doesn't deallocate the array of elements.
This has implications for developers of generic `Tensor` algorithms. This has implications for developers of generic `Tensor` algorithms.
For example, input `Tensor` parameters of a function For example, input `Tensor` parameters of a function
should be passed by referece or const reference, should be passed by reference or const reference,
because passing a `Tensor` by value because passing a `Tensor` by value
may or may not make a deep copy of the `Tensor`'s elements. may or may not make a deep copy of the `Tensor`'s elements.
+4 -4
View File
@@ -72,8 +72,8 @@ namespace layout {
// test capacity // test capacity
auto capacity = tensor_nhwc.capacity(cutlass::Tensor4DCoord(n_size, h_size, w_size, c_size)); auto capacity = tensor_nhwc.capacity(cutlass::Tensor4DCoord(n_size, h_size, w_size, c_size));
decltype(capacity) referece_capacity = ldh * n_size; decltype(capacity) reference_capacity = ldh * n_size;
EXPECT_EQ(capacity, referece_capacity); EXPECT_EQ(capacity, reference_capacity);
// test packed // test packed
auto packed_tensor_layout = tensor_nhwc.packed(cutlass::Tensor4DCoord(n_size, h_size, w_size, c_size)); auto packed_tensor_layout = tensor_nhwc.packed(cutlass::Tensor4DCoord(n_size, h_size, w_size, c_size));
@@ -115,8 +115,8 @@ namespace layout {
// test capacity // test capacity
auto capacity = tensor_nchw.capacity(cutlass::Tensor4DCoord(n_size, h_size, w_size, c_size)); auto capacity = tensor_nchw.capacity(cutlass::Tensor4DCoord(n_size, h_size, w_size, c_size));
decltype(capacity) referece_capacity = ldc * n_size; decltype(capacity) reference_capacity = ldc * n_size;
EXPECT_EQ(capacity, referece_capacity); EXPECT_EQ(capacity, reference_capacity);
// test packed // test packed
auto packed_tensor_layout = tensor_nchw.packed(cutlass::Tensor4DCoord(n_size, h_size, w_size, c_size)); auto packed_tensor_layout = tensor_nchw.packed(cutlass::Tensor4DCoord(n_size, h_size, w_size, c_size));
+2 -2
View File
@@ -74,8 +74,8 @@ namespace layout {
// test capacity // test capacity
auto capacity = tensor_nhw_packed_c.capacity( auto capacity = tensor_nhw_packed_c.capacity(
cutlass::Tensor4DCoord(n_size, h_size, w_size, c_size)); cutlass::Tensor4DCoord(n_size, h_size, w_size, c_size));
decltype(capacity) referece_capacity = ldh * n_size; decltype(capacity) reference_capacity = ldh * n_size;
EXPECT_EQ(capacity, referece_capacity); EXPECT_EQ(capacity, reference_capacity);
} }