Skip to content

Commit

Permalink
Adjust half-type threshold for cross product unit tests (#838)
Browse files Browse the repository at this point in the history
* Adjust half-type threshold for cross product unit tests

* Use the same seed for rng each time
  • Loading branch information
mfzmullen authored Jan 23, 2025
1 parent 30799b3 commit d6a9c5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/00_operators/OperatorTests.cu
Original file line number Diff line number Diff line change
Expand Up @@ -2015,7 +2015,7 @@ TYPED_TEST(OperatorTestsFloatNonComplexAllExecs, Cross)
// Half precision needs a bit more tolerance when compared to fp32
float thresh = 0.01f;
if constexpr (is_matx_half_v<TestType>) {
thresh = 0.02f;
thresh = 0.08f;
}

{//batched 4 x 3
Expand Down
3 changes: 2 additions & 1 deletion test/test_vectors/generators/00_operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ def run(self) -> Dict[str, np.array]:
class cross_operator:
def __init__(self, dtype: str, size: List[int]):
self.size = size
self.dtype = dtype
self.dtype = dtype
np.random.seed(1234)
pass

def run(self) -> Dict[str, np.array]:
Expand Down

0 comments on commit d6a9c5c

Please sign in to comment.