Commit ec7265be authored by Hongkun Yu's avatar Hongkun Yu Committed by A. Unique TensorFlower
Browse files

Task.__init__(params) gets a type annotation, not a default value.

PiperOrigin-RevId: 315322201
parent 3269c84b
......@@ -34,7 +34,7 @@ class Task(tf.Module):
# Special keys in train/validate step returned logs.
loss = "loss"
def __init__(self, params=cfg.TaskConfig):
def __init__(self, params: cfg.TaskConfig):
self._task_config = params
@property
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment