catch stream errors earlier to avoid aborts (#1801)

This commit is contained in:
Awni Hannun
2025-01-27 14:05:43 -08:00
committed by GitHub
parent 28091aa1ff
commit 2235dee906
3 changed files with 29 additions and 7 deletions

View File

@@ -421,6 +421,9 @@ TEST_CASE("test random normal") {
}
TEST_CASE("test random multivariate_normal") {
// Scope switch to the cpu for SVDs
StreamContext sc(Device::cpu);
{
auto mean = zeros({3});
auto cov = eye(3);