We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c4da0b commit c725e5bCopy full SHA for c725e5b
compiler_opt/rl/inlining/imitation_learning_config.py
@@ -14,7 +14,6 @@
14
"""Module for collect data of inlining-for-size."""
15
16
import gin
17
-from typing import Type
18
19
import numpy as np
20
import tensorflow as tf
@@ -76,7 +75,7 @@ def get_input_signature():
76
75
77
78
@gin.register
79
-def get_task_type() -> Type[env.InliningForSizeTask]:
+def get_task_type() -> type[env.InliningForSizeTask]:
80
"""Returns the task type for the trajectory collection."""
81
return env.InliningForSizeTask
82
0 commit comments