Giter Club home page Giter Club logo

Comments (4)

gcp avatar gcp commented on June 17, 2024

No, we are mapping the rotated output vtx back into the regular orientation. vtx is the regular point we are considering and rot_idx is where we look for it in the rotated board output.

from leela-zero.

gcp avatar gcp commented on June 17, 2024

https://github.com/gcp/leela-zero/blob/8507cb47528f43729d6bd723b3890f637ce9e576/src/Network.cpp#L425
For consistency vtx should probably be named rot_idx there.

The neural network board at x contains planes[rotate_nn_idx(x)].

The output board at x will look for net_board[rev_rotate_nn_idx(x)].

x = rev_rotate_nn_idx(rotate_nn_idx(x)) so output and planes have the same orientation.

from leela-zero.

gcp avatar gcp commented on June 17, 2024

I guess this code would be easier to understand and simpler if we change it so the regular board is always on the left-hand side and the network board is on the right-hand side. Then one can probably get rid of rev_rotate_nn_idx as well.

(In image rotation one typically has to "sit at the output" and look for the corresponding input to get non-90° angles right, but that's not necessary here)

from leela-zero.

stevevista avatar stevevista commented on June 17, 2024

vtx is the regular point we are considering and rot_idx is where we look for it in the rotated board output.

my mistake

from leela-zero.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.