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

Add loop unroll into MLGO #180

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Add loop unroll into MLGO #180

wants to merge 2 commits into from

Conversation

eopXD
Copy link
Contributor

@eopXD eopXD commented Nov 20, 2022

No description provided.

@eopXD eopXD force-pushed the loop-unroll branch 3 times, most recently from d6780b3 to 619a770 Compare December 4, 2022 10:56
@@ -34,7 +34,7 @@
from compiler_opt.rl import policy_saver

_COMPILATION_TIMEOUT = flags.DEFINE_integer(
'compilation_timeout', 60,
'compilation_timeout', 120,
Copy link
Collaborator

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])
Copy link
Collaborator

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete # LINT.IfChange

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants