Skip to content

Commit

Permalink
fix Random.InvalidDType
Browse files Browse the repository at this point in the history
Signed-off-by: Liqun Fu <[email protected]>
  • Loading branch information
liqunfu committed Jul 25, 2024
1 parent 1ccda7c commit 8738379
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions onnxruntime/test/providers/cpu/generator/random_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ TEST(Random, InvalidDType) {
test.AddAttribute("shape", dims);

test.AddOutput<double>("Y", dims, expected_output);
test.Run(OpTester::ExpectResult::kExpectFailure, "Attribute dtype does not specify a valid type.");
test.Run(OpTester::ExpectResult::kExpectFailure, "Node (node1) Op (RandomNormal) [TypeInferenceError] Attribute dtype does not specify a valid type in .");
}

{
Expand All @@ -194,7 +194,7 @@ TEST(Random, InvalidDType) {
test.AddAttribute("shape", dims);

test.AddOutput<double>("Y", dims, expected_output);
test.Run(OpTester::ExpectResult::kExpectFailure, "Attribute dtype does not specify a valid type.");
test.Run(OpTester::ExpectResult::kExpectFailure, "Node (node1) Op (RandomUniform) [TypeInferenceError] Attribute dtype does not specify a valid type in .");
}

{
Expand All @@ -210,7 +210,7 @@ TEST(Random, InvalidDType) {

test.AddInput<int32_t>("X", dims, input);
test.AddOutput<double>("Y", dims, expected_output);
test.Run(OpTester::ExpectResult::kExpectFailure, "Attribute dtype does not specify a valid type.");
test.Run(OpTester::ExpectResult::kExpectFailure, "Node (node1) Op (RandomNormalLike) [TypeInferenceError] Attribute dtype does not specify a valid type in .");
}

{
Expand All @@ -226,7 +226,7 @@ TEST(Random, InvalidDType) {

test.AddInput<int32_t>("X", dims, input);
test.AddOutput<double>("Y", dims, expected_output);
test.Run(OpTester::ExpectResult::kExpectFailure, "Attribute dtype does not specify a valid type.");
test.Run(OpTester::ExpectResult::kExpectFailure, "Node (node1) Op (RandomUniformLike) [TypeInferenceError] Attribute dtype does not specify a valid type in .");
}
}

Expand Down

0 comments on commit 8738379

Please sign in to comment.