Clean up some code after previous CL
PiperOrigin-RevId: 158282834
This commit is contained in:
parent
7b5302af0a
commit
dffea202a5
@ -64,8 +64,7 @@ StatusOr<bool> HloPassPipeline::Run(HloModule* module) {
|
||||
bool changed = false;
|
||||
string message;
|
||||
for (auto& pass : passes_) {
|
||||
if (!disabled_passes.empty() &&
|
||||
disabled_passes.count(pass->name().ToString()) > 0) {
|
||||
if (disabled_passes.count(pass->name().ToString()) > 0) {
|
||||
VLOG(1) << " Skipping HLO pass " << pass->name()
|
||||
<< ", disabled by --xla_disable_hlo_passes";
|
||||
continue;
|
||||
|
@ -38,8 +38,8 @@ class ConvertTest : public ClientLibraryTestBase {
|
||||
public:
|
||||
explicit ConvertTest(perftools::gputools::Platform* platform = nullptr)
|
||||
: ClientLibraryTestBase(platform) {
|
||||
mutable_debug_options()->mutable_xla_disable_hlo_passes()->Add("algsimp");
|
||||
mutable_debug_options()->mutable_xla_disable_hlo_passes()->Add("inline");
|
||||
mutable_debug_options()->add_xla_disable_hlo_passes("algsimp");
|
||||
mutable_debug_options()->add_xla_disable_hlo_passes("inline");
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -43,8 +43,8 @@ class MapTest : public ClientLibraryTestBase {
|
||||
public:
|
||||
explicit MapTest(perftools::gputools::Platform* platform = nullptr)
|
||||
: ClientLibraryTestBase(platform) {
|
||||
mutable_debug_options()->mutable_xla_disable_hlo_passes()->Add("algsimp");
|
||||
mutable_debug_options()->mutable_xla_disable_hlo_passes()->Add("inline");
|
||||
mutable_debug_options()->add_xla_disable_hlo_passes("algsimp");
|
||||
mutable_debug_options()->add_xla_disable_hlo_passes("inline");
|
||||
}
|
||||
|
||||
// Creates a function that adds its scalar argument with the constant 1.0.
|
||||
|
@ -43,8 +43,8 @@ class VecOpsSimpleTest : public ClientLibraryTestBase {
|
||||
public:
|
||||
explicit VecOpsSimpleTest(perftools::gputools::Platform* platform = nullptr)
|
||||
: ClientLibraryTestBase(platform) {
|
||||
mutable_debug_options()->mutable_xla_disable_hlo_passes()->Add("algsimp");
|
||||
mutable_debug_options()->mutable_xla_disable_hlo_passes()->Add("inline");
|
||||
mutable_debug_options()->add_xla_disable_hlo_passes("algsimp");
|
||||
mutable_debug_options()->add_xla_disable_hlo_passes("inline");
|
||||
}
|
||||
|
||||
ErrorSpec error_spec_{0.0001};
|
||||
|
Loading…
Reference in New Issue
Block a user