aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/gan
diff options
context:
space:
mode:
authorGravatar Paul Van Eck <pvaneck@us.ibm.com>2018-05-14 08:27:42 -0700
committerGravatar Shanqing Cai <cais@google.com>2018-05-14 11:27:42 -0400
commita5f12aadacfdf690c8f2192d612bf575b8e11cbe (patch)
tree5cfc427d8134feba6abd519833eaedb1dc98ecca /tensorflow/contrib/gan
parentf27033fb1212d7031a359c913d0f59e976b14c14 (diff)
Make op unique name generation case insensitive (#18413)
* Make op unique name generation case insensitive Unique name generation for operations depends on checking a dict for names currently in use. This commit makes it so that the names stored in this dict are always lowercase so that we can check if a name already exists regardless of the capitalization. This helps in filesystems where file paths are case insensitive and tensor dumps (like with tfdbg) try to follow directory structures that correspond to the tensor names. If two tensors have names with the same spelling, but different capitalizations, then this can lead to unintended side effects/errors on these case-insensitive file systems. * Change variable name to match unique_name * Adjust op names to fix tests
Diffstat (limited to 'tensorflow/contrib/gan')
-rw-r--r--tensorflow/contrib/gan/python/losses/python/losses_impl_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/contrib/gan/python/losses/python/losses_impl_test.py b/tensorflow/contrib/gan/python/losses/python/losses_impl_test.py
index 2889e93743..9f5fee4542 100644
--- a/tensorflow/contrib/gan/python/losses/python/losses_impl_test.py
+++ b/tensorflow/contrib/gan/python/losses/python/losses_impl_test.py
@@ -570,7 +570,7 @@ class MutualInformationPenaltyTest(test.TestCase, _PenaltyTest):
'predicted_distributions': self._predicted_distributions,
}
self._expected_loss = 1.61610
- self._expected_op_name = 'mutual_information_loss/mul'
+ self._expected_op_name = 'mutual_information_loss/mul_1'
self._batch_size = 2