What's new? |
Turning off TF2 auto-sharding warning - 컴퓨터 |
https://github.com/tensorflow/tensorflow/issues/42146#issuecomment-671484239
Message: "Consider either turning off auto-sharding or switching the auto_shard_policy to DATA to shard this dataset."
If your Tensorflow scripts leave this log message, then it falls back to use DATA type sharding. Thus, to turn off the log message you can set auto_shard_policy to DATA using tf.data.Options() as follows:
options = tf.data.Options()
options.experimental_distribute.auto_shard_policy = tf.data.experimental.AutoShardPolicy.DATA
dataset = dataset.with_options(options)
Message: "Consider either turning off auto-sharding or switching the auto_shard_policy to DATA to shard this dataset."
If your Tensorflow scripts leave this log message, then it falls back to use DATA type sharding. Thus, to turn off the log message you can set auto_shard_policy to DATA using tf.data.Options() as follows:
options = tf.data.Options()
options.experimental_distribute.auto_shard_policy = tf.data.experimental.AutoShardPolicy.DATA
dataset = dataset.with_options(options)
written time : 2020-09-14 19:15:49.0
Turning on Tensorflow XLA - 컴퓨터 |
Version: f1f85733439920c031519042e312d6bbe60f5f93
TF_PATH=`pip show tensorflow | grep Location | cut -f2 -d" "`
export TF_XLA_FLAGS="--tf_xla_enable_xla_devices=true --tf_xla_auto_jit=2 --tf_xla_cpu_global_jit" $TF_PATH
TF_PATH=`pip show tensorflow | grep Location | cut -f2 -d" "`
export TF_XLA_FLAGS="--tf_xla_enable_xla_devices=true --tf_xla_auto_jit=2 --tf_xla_cpu_global_jit" $TF_PATH
written time : 2020-09-13 14:46:16.0
Tensorflow 2.4.0 - 컴퓨터 |
checking whether mkl is enabled or not.
python -c "from tensorflow.python.framework import test_util;print(test_util.IsMklEnabled())"
python -c "from tensorflow.python.framework import test_util;print(test_util.IsMklEnabled())"
written time : 2020-09-10 15:31:35.0