Skip to content

Commit

Permalink
VariableLayer, change default add_batch_axis to False
Browse files Browse the repository at this point in the history
Fix #763.

As this should not have any influence on behavior,
this does not need a new behavior version.
  • Loading branch information
albertz committed Nov 24, 2021
1 parent 82268ac commit 618b708
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions returnn/tf/layers/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -7246,7 +7246,7 @@ class VariableLayer(LayerBase):
"""
layer_class = "variable"

def __init__(self, shape, dtype="float32", add_batch_axis=True, add_time_axis=False, trainable=True,
def __init__(self, shape, dtype="float32", add_batch_axis=False, add_time_axis=False, trainable=True,
init=0,
**kwargs):
"""
Expand Down Expand Up @@ -7298,7 +7298,7 @@ def transform_config_dict(cls, d, network, get_layer):

@classmethod
def get_out_data_from_opts(cls, name, network,
shape, dtype="float32", add_batch_axis=True, add_time_axis=False, **kwargs):
shape, dtype="float32", add_batch_axis=False, add_time_axis=False, **kwargs):
"""
:param str name:
:param returnn.tf.network.TFNetwork network:
Expand Down

0 comments on commit 618b708

Please sign in to comment.