Skip to content

Commit e314df5

Browse files
Add Python 3.11 to CI checks (#409)
Python 3.11 is the version used internally at Google, and testing a more recent version would not hurt.
1 parent 7c12054 commit e314df5

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ jobs:
2828
run: |
2929
if [ -z $ACT ]
3030
then
31-
_ver="['3.10']"
31+
_ver="['3.10','3.11']"
3232
_cache="1"
3333
else
3434
# 3.10 instead of '3.10' to make github act work.
35-
_ver="[3.10]"
35+
_ver="[3.10,3.11]"
3636
_cache="0"
3737
fi
3838
echo "version_matrix=$_ver" >> $GITHUB_OUTPUT

compiler_opt/rl/distributed/agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# limitations under the License.
1515
"""PPO agent definition and utility functions."""
1616

17-
from typing import Optional, Text, Tuple
17+
from typing import Optional, Tuple
1818

1919
from absl import logging
2020

@@ -67,7 +67,7 @@ def __init__(self,
6767
train_step_counter: Optional[tf.Variable] = None,
6868
aggregate_losses_across_replicas=False,
6969
loss_scaling_factor=1.,
70-
name: Optional[Text] = 'PPOClipAgent'):
70+
name: Optional[str] = 'PPOClipAgent'):
7171
"""Creates a PPO Agent implementing the clipped probability ratios.
7272
7373
Args:

compiler_opt/rl/distributed/learner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# limitations under the License.
1515
"""Utility to create MLGO policy learner."""
1616

17-
from typing import Callable, List, Optional, Text, Tuple
17+
from typing import Callable, List, Optional, Tuple
1818

1919
from absl import logging
2020

@@ -47,7 +47,7 @@ class MLGOPPOLearner(object):
4747
"""
4848

4949
def __init__(self,
50-
root_dir: Text,
50+
root_dir: str,
5151
train_step: tf.Variable,
5252
model_id: tf.Variable,
5353
agent: ppo_agent.PPOAgent,

compiler_opt/rl/regalloc/regalloc_network.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# limitations under the License.
1515
"""Actor network for Register Allocation."""
1616

17-
from typing import Optional, Sequence, Callable, Text, Any
17+
from typing import Optional, Sequence, Callable, Any
1818

1919
import gin
2020
import tensorflow as tf
@@ -78,7 +78,7 @@ def __init__(
7878
kernel_initializer: Optional[tf.keras.initializers.Initializer] = None,
7979
batch_squash: bool = True,
8080
dtype: tf.DType = tf.float32,
81-
name: Text = 'RegAllocNetwork'):
81+
name: str = 'RegAllocNetwork'):
8282
"""Creates an instance of `RegAllocNetwork`.
8383
8484
Args:

0 commit comments

Comments
 (0)