-
Notifications
You must be signed in to change notification settings - Fork 943
Support tensors rank 5 #1022
Support tensors rank 5 #1022
Conversation
Does anybody have time to review this? I am traveling in a few days and will not have time to work on the comments. |
@zaidalyafeai , this is a great start to adding 5D. Thank you for this change. Since you already modified I'm happy to also review future PRs that change other ops to work with 5D. Thank you! Reviewed 10 of 10 files at r1. src/ops/array_ops.ts, line 263 at r1 (raw file):
call tensor5d src/ops/array_ops.ts, line 277 at r1 (raw file):
fix error message to say five numbers instead of four src/ops/array_ops.ts, line 1008 at r1 (raw file):
fix these checks to be for 5d (the current values are for the 4d case) Comments from Reviewable |
@dsmilkov, I will not have the time to add unit tests for reverse, pad and transpose because I am getting ready to travel. Should I revert the changes I made to those operations ( they are minimal) ? |
No worries. Reverting those sounds good and then we can continue later with the follow up changes. Safe travels! |
Let me know when this is ready to look at again. |
@nsthorat I already commited my final changes. |
It's looking good! Would be good to add some unit tests for operations with 5D Tensors that aren't just construction, specifically for operations that operate on any rank (mean, unary ops like square, etc). Review status: 5 of 8 files reviewed at latest revision, 3 unresolved discussions, some commit checks failed. Comments from Reviewable |
@nsthorat, It is not clear to me what operations should I focus on. The unary ops file only contains unit tests for tensors of rank less than 3. |
|
Since transpose is necessary for tensorflow/tfjs#161 I implemented it . Maybe we can merge this and support the other gpu operations once needed ? |
Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed. Comments from Reviewable |
One unrelated test fails - it's a known test tracked in tensorflow/tfjs#377 which shouldn't block this PR. |
Awesome 😀 glad it worked. |
@dsmilkov, time to work on the remaining gpu operations ? |
Added tensors rank 5. This is still a work in progress. The shader_compiler.ts file needs to be further revised ... Many gpu operations needs to be changed like reverse, transpose, slice ...
This change is