Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit 837990f

Browse files
afrozenatorCopybara-Service
authored andcommitted
Fixing pylint signature-differs on various methods.
PiperOrigin-RevId: 209193066
1 parent 2f8423a commit 837990f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tensor2tensor/layers/common_layers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3991,7 +3991,7 @@ def _data_dep_init(self, inputs):
39913991
self.layer.activation = activation
39923992
self.initialized = True
39933993

3994-
def build(self, input_shape):
3994+
def build(self, input_shape=None):
39953995
"""Build `Layer`."""
39963996
input_shape = tf.TensorShape(input_shape).as_list()
39973997
self.input_spec = tf.layers.InputSpec(shape=input_shape)

tensor2tensor/models/research/vqa_attention.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def body(self, features):
9797
return tf.expand_dims(tf.expand_dims(output, axis=1), axis=2)
9898

9999
def infer(self,
100-
features,
100+
features=None,
101101
decode_length=1,
102102
beam_size=1,
103103
top_beams=1,

0 commit comments

Comments
 (0)