Skip to content

Commit f53760b

Browse files
authored
CompileTFGraphJob: allow Variable epoch (#435)
1 parent 1f7bc8a commit f53760b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

returnn/compile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class CompileTFGraphJob(Job):
2121
"""
22-
This Job is a wrapper around the RETURNN tool comptile_tf_graph.py
22+
This Job is a wrapper around the RETURNN tool compile_tf_graph.py
2323
2424
"""
2525

@@ -47,7 +47,7 @@ def __init__(
4747
:param int train:
4848
:param int eval:
4949
:param int search:
50-
:param int|None epoch: compile a specific epoch for networks that might change with every epoch
50+
:param int|tk.Variable|None epoch: compile a specific epoch for networks that might change with every epoch
5151
:param int log_verbosity: RETURNN log verbosity from 1 (least verbose) to 5 (most verbose)
5252
:param str|None device: optimize graph for cpu or gpu. If `None`, defaults to cpu for current RETURNN.
5353
For any RETURNN version before `cd4bc382`, the behavior will depend on the `device` entry in the
@@ -115,7 +115,7 @@ def run(self):
115115
if self.device is not None:
116116
args.append("--device=%s" % self.device)
117117
if self.epoch is not None:
118-
args.append("--epoch=%d" % self.epoch)
118+
args.append("--epoch=%d" % util.instanciate_delayed(self.epoch))
119119
if self.summaries_tensor_name is not None:
120120
args.append("--summaries_tensor_name=%s" % self.summaries_tensor_name)
121121
if self.rec_step_by_step is not None:

0 commit comments

Comments
 (0)