Skip to content

Commit f7d7ab0

Browse files
committed
Remove unnecessary factoring
1 parent 063c133 commit f7d7ab0

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

test/test_patch_bias_add.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Copyright 2019 The TensorFlow Authors. All Rights Reserved
2-
#
2+
#
33
# _new_biad_add_1_14() derived from source in
44
# https://github/tensorflow/tensorflow and therefore
55
# Copyright 2019 The TensorFlow Authors. All Rights Reserved

tfdeterminism/patch.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ def _patch():
5151
if tf_version.startswith('1.14'):
5252
os.environ['TF_CUDNN_DETERMINISTIC'] = '1'
5353
_patch_bias_add()
54-
_eprint("TensorFlow version %s has been patched using tfdeterminism.patch" % tf_version)
54+
print("TensorFlow version %s has been patched using tfdeterminism.patch" %
55+
tf_version, file=sys.stderr)
5556
else:
5657
raise ValueError("No patch available for version %s of TensorFlow" %
5758
tensorflow_version)
@@ -114,6 +115,3 @@ def _new_bias_add_1_14(value, bias, data_format=None, name=None):
114115
value, array_ops.reshape(bias, broadcast_shape), name=name)
115116
else: # data_format == 'NHWC' or data_format == None
116117
return math_ops.add(value, bias, name=name)
117-
118-
def _eprint(*args, **kwargs):
119-
print(*args, file=sys.stderr, **kwargs)

0 commit comments

Comments
 (0)