Skip to content

Commit

Permalink
Enable the experimental mem-intensive operator optimization by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesTheZ committed Aug 2, 2023
1 parent 738fa33 commit 9525530
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tao_compiler/mlir/disc/disc_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,8 @@ bool lowerFakeQuantToQuantAndDequant() {

bool isMemIntensiveOptExperimentalEnabled() {
static bool enabled = []() {
bool enabled = false;
// Enable mem-intensive operator optimization by default.
bool enabled = true;
tensorflow::ReadBoolFromEnvVar("DISC_MEM_INTENSIVE_OPT_EXPERIMENTAL",
enabled, &enabled);
return enabled;
Expand Down

0 comments on commit 9525530

Please sign in to comment.