Skip to content

Commit

Permalink
Fix typo/logic bug in modular plugins.
Browse files Browse the repository at this point in the history
We want to enable plugins only if the environment variable exists!

CC @yongtang, @kvignesh1420, @vnvo2409.

PiperOrigin-RevId: 366056903
Change-Id: Ia6f0918c97cbd6e064e19a02ce3a7d46f48b2799
  • Loading branch information
mihaimaruseac committed Mar 31, 2021
1 parent 158505e commit b9e31e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorflow/core/platform/env.h
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ struct Register {
if (try_modular_filesystems) {
const char* env_value = getenv("TF_USE_MODULAR_FILESYSTEM");
string load_plugin = env_value ? absl::AsciiStrToLower(env_value) : "";
if (!(load_plugin == "true" || load_plugin == "1")) {
if (load_plugin == "true" || load_plugin == "1") {
// We don't register the static filesystem and wait for SIG IO one
LOG(WARNING) << "Using modular file system for '" << scheme << "."
<< " Please switch to tensorflow-io"
Expand Down

0 comments on commit b9e31e6

Please sign in to comment.