Skip to content
Merged
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
8 changes: 8 additions & 0 deletions tester/api_config/config_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1804,6 +1804,14 @@ def get_padding_offset(bsz, max_seq_len, seq_lens_this_time):
if self.check_arg(api_config, 1, "label"):
self.numpy_tensor = numpy.random.randint(low=0, high=2, size=self.shape).astype(self.dtype)

elif api_config.api_name.endswith("cholesky_solve"):
if self.check_arg(api_config, 1, "y"):
is_upper = self.get_arg(api_config, 2, "upper")
if is_upper:
self.numpy_tensor = numpy.triu(self.get_random_numpy_tensor(self.shape, self.dtype))
else:
self.numpy_tensor = numpy.tril(self.get_random_numpy_tensor(self.shape, self.dtype))

if self.numpy_tensor is None:
if USE_CACHED_NUMPY and self.dtype not in ["int64", "float64"]:
self.numpy_tensor = self.get_cached_numpy(self.dtype, self.shape)
Expand Down