Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some typing issue in generate_default_trace #390

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions compiler_opt/tools/generate_default_trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import contextlib
import functools
import re
from typing import Dict, List, Optional, Union, Tuple # pylint:disable=unused-import
from typing import Dict, List, Optional, Tuple

from absl import app
from absl import flags
Expand All @@ -38,9 +38,6 @@

from tf_agents.system import system_multiprocessing as multiprocessing

# see https://bugs.python.org/issue33315 - we do need these types, but must
# currently use them as string annotations

_DATA_PATH = flags.DEFINE_string('data_path', None,
'Path to folder containing IR files.')
_POLICY_PATH = flags.DEFINE_string(
Expand Down Expand Up @@ -69,11 +66,6 @@
'gin_bindings', [],
'Gin bindings to override the values set in the config files.')

ResultsQueueEntry = Union[Optional[Tuple[str, List[str],
Dict[str,
compilation_runner.RewardStat]]],
BaseException]


class FilteringWorker(worker.Worker):
"""Worker that performs a computation and optionally filters the result.
Expand Down