-
Notifications
You must be signed in to change notification settings - Fork 7
reshape、transpose、concat、broadcast_to #17
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 18 out of 31 changed files in this pull request and generated 2 comments.
Files not reviewed (13)
- excuter/cpp-common/src/deepx/shape.cpp: Language not supported
- excuter/cpp-common/src/deepx/shape_broadcast.hpp: Language not supported
- excuter/cpp-common/src/deepx/tensorfunc/changeshape.hpp: Language not supported
- excuter/op-mem-cuda/src/client/tfs.cpp: Language not supported
- excuter/op-mem-cuda/src/deepx/tensorfunc/broadcast.hpp: Language not supported
- excuter/op-mem-cuda/src/deepx/tensorfunc/changeshape_miaobyte.cu: Language not supported
- excuter/op-mem-cuda/src/deepx/tensorfunc/changeshape_miaobyte.cuh: Language not supported
- excuter/op-mem-cuda/src/deepx/tensorfunc/changeshape_miaobyte.hpp: Language not supported
- excuter/op-mem-cuda/src/deepx/tf/changeshape.hpp: Language not supported
- excuter/op-mem-cuda/test/tensorfunc/2_changeshape.cpp: Language not supported
- excuter/op-mem-ompsimd/src/client/tfs.cpp: Language not supported
- excuter/op-mem-ompsimd/src/deepx/tensorfunc/changeshape_miaobyte.hpp: Language not supported
- excuter/op-mem-ompsimd/src/deepx/tf/changeshape.hpp: Language not supported
Comments suppressed due to low confidence (2)
front/py/deepx/tensor/changeshape.py:35
- Removing the axes parameter in 'transpose_' may not be intentional; if this method is meant to always swap the last two dimensions, please clarify the behavior or adjust the signature accordingly.
def transpose_(self):
front/py/deepx/nn/functional/changeshape.py:187
- Undefined variable 't' used in BroadcastTo.backward; ensure a proper tensor reference is provided for the backward computation.
return _A_v_elementwiseop_C(out_grad,new_shape,"broadcastTo",t.node.name,author)
| @property | ||
| def shape(self): | ||
| return self._shape.shape | ||
| def shape(self,dim:int=None): |
Copilot
AI
Apr 7, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Defining a property with an extra parameter deviates from typical Python property usage. Consider converting 'shape' to a regular method (e.g., 'get_shape') if a parameter is needed.
| return _A_v_elementwiseop_C(out_grad,dim,"concat",t.node.name,author) | ||
|
|
Copilot
AI
Apr 7, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Undefined variable 't' used in Concat.backward; use a valid tensor reference (e.g., from saved context) or correct the identifier.
| return _A_v_elementwiseop_C(out_grad,dim,"concat",t.node.name,author) | |
| tensors = ctx.get_data('tensors') | |
| return _A_v_elementwiseop_C(out_grad, dim, "concat", tensors[0].node.name, author) |
No description provided.