Skip to content

Commit

Permalink
yapf . -ir
Browse files Browse the repository at this point in the history
  • Loading branch information
tvmarino committed Sep 6, 2024
1 parent bf12cee commit f5b6b6f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions compiler_opt/tools/combine_tfa_policies_lib_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ class AddOnePolicy(tf_agents.policies.TFPolicy):
"""Test policy which adds one to obs feature."""

def __init__(self):
obs_spec = {
'obs': tensor_spec.TensorSpec(shape=(1,), dtype=tf.int64)
}
obs_spec = {'obs': tensor_spec.TensorSpec(shape=(1,), dtype=tf.int64)}
time_step_spec = ts.time_step_spec(obs_spec)

act_spec = tensor_spec.TensorSpec(shape=(1,), dtype=tf.int64)
Expand All @@ -56,9 +54,7 @@ class SubtractOnePolicy(tf_agents.policies.TFPolicy):
"""Test policy which subtracts one to obs feature."""

def __init__(self):
obs_spec = {
'obs': tensor_spec.TensorSpec(shape=(1,), dtype=tf.int64)
}
obs_spec = {'obs': tensor_spec.TensorSpec(shape=(1,), dtype=tf.int64)}
time_step_spec = ts.time_step_spec(obs_spec)

act_spec = tensor_spec.TensorSpec(shape=(1,), dtype=tf.int64)
Expand Down

0 comments on commit f5b6b6f

Please sign in to comment.