Skip to content

Commit 2c4da0b

Browse files
committed
Change from return type[] to return Type[]
1 parent 19b7945 commit 2c4da0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler_opt/rl/inlining/imitation_learning_config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"""Module for collect data of inlining-for-size."""
1515

1616
import gin
17+
from typing import Type
1718

1819
import numpy as np
1920
import tensorflow as tf
@@ -75,7 +76,7 @@ def get_input_signature():
7576

7677

7778
@gin.register
78-
def get_task_type() -> type[env.InliningForSizeTask]:
79+
def get_task_type() -> Type[env.InliningForSizeTask]:
7980
"""Returns the task type for the trajectory collection."""
8081
return env.InliningForSizeTask
8182

0 commit comments

Comments
 (0)