Repository navigation
Frame generation: net2's grid level per layer in the layout table - #175
Merged
Merged
Conversation
Net2Layer gets the grid level of each layer (divisor of the network grid) and whether its output is upscaled 2x; sub-net A's last layer has no stated level (OPEN). net2_macs_per_pixel computes each sub-net's work per network-grid pixel from the table, the OPEN level passed explicitly. Refs #96 Signed-off-by: phantoslayer21 <156617979+phantoslayer21@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds net2's grid level per layer to the frame-generation layout table (lane h).
clean/fg/layout.pyNet2Layer.level: the grid each layer runs on, as a divisor of the network grid (1, 2, 4 or 8).None(OPEN).Net2Layer.upscaled: marks the two layers whose output is upscaled 2× (layers 12 and 24).net2_macs_per_pixel(subnet, *, used_inputs=True, open_level=None): one sub-net's multiply-adds per network-grid pixel, computed from the table (not measured). A level that is OPEN must be passed explicitly.clean/fg/FORMATS.mdnotes the levels and the OPEN level.Refs #96
Tested
python -m unittest clean.fg.tests.test_fg_layout: 8 tests pass locally.clean/fgtest set passes. The line-ending check and the public gates pass, with no hits inclean/fg.Not tested