-
Notifications
You must be signed in to change notification settings - Fork 92
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
Add loop unroll into MLGO #180
base: main
Are you sure you want to change the base?
Conversation
d6780b3
to
619a770
Compare
@@ -34,7 +34,7 @@ | |||
from compiler_opt.rl import policy_saver | |||
|
|||
_COMPILATION_TIMEOUT = flags.DEFINE_integer( | |||
'compilation_timeout', 60, | |||
'compilation_timeout', 120, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you revert it back?
@@ -170,7 +170,7 @@ def main(_) -> None: | |||
parser_fn = create_tfrecord_parser_fn(sequence_features) | |||
dataset = dataset.map(parser_fn, num_parallel_calls=tf.data.AUTOTUNE) | |||
data_list = np.array(list(dataset.as_numpy_iterator()), dtype=object) | |||
data_list = np.transpose(data_list, [1, 0]) | |||
data_list = np.transpose(data_list, [1, 0, 2]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's this change for?
@gin.configurable() | ||
def get_unroll_signature_spec(): | ||
"""Returns (time_step_spec, action_spec) for LLVM loop unroll.""" | ||
# LINT.IfChange |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete # LINT.IfChange
No description provided.