Skip to content

Commit

Permalink
Fix static check error
Browse files Browse the repository at this point in the history
  • Loading branch information
xinlipn committed Jul 6, 2023
1 parent a6e6f1a commit 444ee2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/gtest/conv_embed_db.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,11 @@ TEST_P(ConfigWithBFloat16, BFloat16Test)

std::vector<std::string> GetTestCases(const std::string& precision)
{
std::string flags = " --disable-validation --verbose ";
const auto& envVar = miopen::GetEnv("MIOPEN_TEST_FLOAT_ARG");
std::string flags = " --disable-validation --verbose ";

// If precision env var is not set
if(envVar.empty())
if(!(IsTestRunWith("--float") || IsTestRunWith("--half") || IsTestRunWith("--int8") ||
IsTestRunWith("--bfloat16")))
flags.insert(0, precision);

const std::vector<std::string> test_cases = {
Expand Down

0 comments on commit 444ee2b

Please sign in to comment.