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

Two channel board tensor #18

Merged
merged 6 commits into from
Jul 24, 2019
Merged

Two channel board tensor #18

merged 6 commits into from
Jul 24, 2019

Conversation

harbecke
Copy link
Owner

@harbecke harbecke commented Jul 21, 2019

I changed the board tensor to two channels. The channels exchanged (torch.roll) and transposed after every move. I tried converting three layer models to two layer models but the output required retraining so I suggest just training new models (which appears to be faster). Please take a look at the branch and notify me whether it works for you.

@harbecke harbecke requested review from simonant and cleeff July 21, 2019 14:32
@harbecke
Copy link
Owner Author

harbecke commented Jul 22, 2019

there is also the possibility of introducing a legacy_board_tensor that is not transposed and rolled in hex.logic.hexboard.Board and retrieving all information for e.g. Gui from there. do you think think this is better?

@PascalCremer
Copy link
Contributor

I wouldn't introduce a legacy board tensor but rather have board provide a function get_owner(position) which knows about the roatation logic.

@PascalCremer
Copy link
Contributor

I think that anything that doesn't need backpropagation / gpu support should use easy to use board functions instead of board_tensor

@harbecke harbecke merged commit 58a460e into master Jul 24, 2019
@harbecke harbecke deleted the two_channel_board_tensor branch July 24, 2019 21:10
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