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

The latent representation of compiler phase order #5

Open
gloaming2dawn opened this issue Feb 27, 2022 · 5 comments
Open

The latent representation of compiler phase order #5

gloaming2dawn opened this issue Feb 27, 2022 · 5 comments

Comments

@gloaming2dawn
Copy link

Hi, thank you for your good work.

Can I know how do you learn the latent representation of compiler phase order task? That is not mentioned in the paper.

@yangkevin2
Copy link
Owner

@tianjunz

@tianjunz
Copy link
Collaborator

tianjunz commented Mar 1, 2022

We used a random representation (e.g., projecting the state space using a random MLP network). It is very similar to the maze environment except changing the CNN network into a MLP one.

@gloaming2dawn
Copy link
Author

We used a random representation (e.g., projecting the state space using a random MLP network). It is very similar to the maze environment except changing the CNN network into a MLP one.

Thanks for your reply. Several other questions:

Did you use a pretrained network, or just use the collected label during search to train the MLP network?

Is the network an auto-encoder and you use a decoder to obtain the candidate? if so, how do you train it? For example, jointly training a predictor and auto-encoder-decoder?

@tianjunz

@tianjunz
Copy link
Collaborator

tianjunz commented Mar 7, 2022

No, we don't pretrain/train the network. We use a random network for projecting. So pretty much a randomly initialized MLP could work. We use this for classification but not for sampling. You can achieve this by setting "--latent=True" and "--latent_sample=False".

@gloaming2dawn
Copy link
Author

Hi, I think I still have a new question, i.e., what is the state space for compiler phase order problem? Is it the action sequence or the binary file?

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

No branches or pull requests

3 participants