File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -351,7 +351,7 @@ def initialization_lambda(sess):
351
351
batch_env .initialize (sess )
352
352
353
353
memory = [
354
- tf .get_variable (
354
+ tf .get_variable ( # pylint: disable=g-complex-comprehension
355
355
"collect_memory_%d_%s" % (epoch_length , name ),
356
356
shape = [epoch_length ] + shape ,
357
357
dtype = dtype ,
Original file line number Diff line number Diff line change @@ -62,8 +62,10 @@ def initialize_env_specs(hparams):
62
62
63
63
return rl .make_real_env_fn (env )
64
64
65
+
65
66
step = 0
66
67
68
+
67
69
def train (hparams , output_dir , report_fn = None ):
68
70
"""Train."""
69
71
env_fn = initialize_env_specs (hparams )
@@ -127,6 +129,7 @@ def evaluate_on_new_model(model_dir_path):
127
129
epoch = 0 ,
128
130
model_save_fn = evaluate_on_new_model )
129
131
132
+
130
133
def main (_ ):
131
134
hparams = trainer_lib .create_hparams (FLAGS .hparams_set , FLAGS .hparams )
132
135
You can’t perform that action at this time.
0 commit comments