Pool2D parallel shape inference#9
Pool2D parallel shape inference#9Marsella8 wants to merge 12 commits intolockshaw:pcg-serializationfrom
Conversation
This reverts commit 1803846.
lockshaw
left a comment
There was a problem hiding this comment.
Can you add tests? You can find an example in https://github.com/lockshaw/FlexFlow/blob/88709f056892bdd90ce3a6a6c5060d0b91966df6/lib/op-attrs/test/src/test_batch_matmul.cc
Reviewed 8 of 8 files at r1, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @Marsella8)
Marsella8
left a comment
There was a problem hiding this comment.
test has been added
Reviewable status: 8 of 9 files reviewed, all discussions resolved (waiting on @lockshaw)
lockshaw
left a comment
There was a problem hiding this comment.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Marsella8)
lib/op-attrs/test/src/test_pool_2d.cc line 63 at r2 (raw file):
CHECK(result == correct_output_shape); } }
Tests for parallel shape inference (i.e., get_output_shape(Pool2DAttrs, ParallelTensorShape)) are also needed--see https://github.com/lockshaw/FlexFlow/blob/1a6d1f8d9de10f1d9159686c61b13e07b71671b6/lib/op-attrs/test/src/test_attention.cc for example
lockshaw
left a comment
There was a problem hiding this comment.
Reviewed all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Marsella8)
Marsella8
left a comment
There was a problem hiding this comment.
Reviewable status: 8 of 10 files reviewed, 1 unresolved discussion (waiting on @lockshaw)
lib/op-attrs/test/src/test_pool_2d.cc line 63 at r2 (raw file):
Previously, lockshaw (Colin Unger) wrote…
Tests for parallel shape inference (i.e.,
get_output_shape(Pool2DAttrs, ParallelTensorShape)) are also needed--see https://github.com/lockshaw/FlexFlow/blob/1a6d1f8d9de10f1d9159686c61b13e07b71671b6/lib/op-attrs/test/src/test_attention.cc for example
added tests for get_output_shape(Pool2DAttrs, ParallelTensorShape). I'm still not entirely confident in how the shapes change when there is parallelization involved, so let me know if you see any glaring issues. I can briefly work on it later tonight if some additional changes are needed.
lockshaw
left a comment
There was a problem hiding this comment.
Reviewed 2 of 2 files at r4, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Marsella8)
lib/op-attrs/test/src/test_pool_2d.cc line 63 at r2 (raw file):
Previously, Marsella8 wrote…
added tests for
get_output_shape(Pool2DAttrs, ParallelTensorShape). I'm still not entirely confident in how the shapes change when there is parallelization involved, so let me know if you see any glaring issues. I can briefly work on it later tonight if some additional changes are needed.
Ideally have tests checking each of the individual parallelization schemes, as in
FlexFlow/lib/op-attrs/test/src/test_embedding.cc
Lines 76 to 130 in cb2c862
Marsella8
left a comment
There was a problem hiding this comment.
Reviewable status: 8 of 10 files reviewed, 1 unresolved discussion (waiting on @lockshaw)
lib/op-attrs/test/src/test_pool_2d.cc line 63 at r2 (raw file):
Previously, lockshaw (Colin Unger) wrote…
Ideally have tests checking each of the individual parallelization schemes, as in
, as it makes it clearer what is actually being testedFlexFlow/lib/op-attrs/test/src/test_embedding.cc
Lines 76 to 130 in cb2c862
I'm still unsure on how to model the kernel tensor (and how to infer the shape). Is it only (width, height) or do I also need to include the input channel size as a dimension?
|
Previously, Marsella8 wrote…
I don't think you have a kernel tensor here, as |
|
Superseded by flexflow#1495 |
Description of changes:
Added Pool2D parallel shape inference
Related Issues:
Linked Issues:
Issues closed by this PR:
Before merging:
This change is