Skip to content

Commit 618b708

Browse files
committed
VariableLayer, change default add_batch_axis to False
Fix #763. As this should not have any influence on behavior, this does not need a new behavior version.
1 parent 82268ac commit 618b708

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

returnn/tf/layers/basic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7246,7 +7246,7 @@ class VariableLayer(LayerBase):
72467246
"""
72477247
layer_class = "variable"
72487248

7249-
def __init__(self, shape, dtype="float32", add_batch_axis=True, add_time_axis=False, trainable=True,
7249+
def __init__(self, shape, dtype="float32", add_batch_axis=False, add_time_axis=False, trainable=True,
72507250
init=0,
72517251
**kwargs):
72527252
"""
@@ -7298,7 +7298,7 @@ def transform_config_dict(cls, d, network, get_layer):
72987298

72997299
@classmethod
73007300
def get_out_data_from_opts(cls, name, network,
7301-
shape, dtype="float32", add_batch_axis=True, add_time_axis=False, **kwargs):
7301+
shape, dtype="float32", add_batch_axis=False, add_time_axis=False, **kwargs):
73027302
"""
73037303
:param str name:
73047304
:param returnn.tf.network.TFNetwork network:

0 commit comments

Comments
 (0)