diff options
author | Paul Van Eck <pvaneck@us.ibm.com> | 2018-05-14 08:27:42 -0700 |
---|---|---|
committer | Shanqing Cai <cais@google.com> | 2018-05-14 11:27:42 -0400 |
commit | a5f12aadacfdf690c8f2192d612bf575b8e11cbe (patch) | |
tree | 5cfc427d8134feba6abd519833eaedb1dc98ecca /tensorflow/contrib/receptive_field | |
parent | f27033fb1212d7031a359c913d0f59e976b14c14 (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/receptive_field')
-rw-r--r-- | tensorflow/contrib/receptive_field/python/util/receptive_field_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/contrib/receptive_field/python/util/receptive_field_test.py b/tensorflow/contrib/receptive_field/python/util/receptive_field_test.py index cf55da2723..a42bbca611 100644 --- a/tensorflow/contrib/receptive_field/python/util/receptive_field_test.py +++ b/tensorflow/contrib/receptive_field/python/util/receptive_field_test.py @@ -385,7 +385,7 @@ class ReceptiveFieldTest(test.TestCase): effective_stride_y, effective_padding_x, effective_padding_y) = ( receptive_field.compute_receptive_field_from_graph_def( graph_def, input_node, output_node, - ['Dropout/dropout/random_uniform'])) + ['Dropout/dropout_1/random_uniform'])) self.assertEqual(receptive_field_x, 3) self.assertEqual(receptive_field_y, 3) self.assertEqual(effective_stride_x, 4) |