-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Rename DataLayout into FourDimImageTensorDataLayout #8298
Comments
If we are going to have a data type, which represents an image, we should define a new C++ class as follows: class ImageTensor : public Tensor {
public:
enum Layout {
UNKNOWN = 0,
NHWC = 1,
HWNC = 2,
...
};
private:
Layout layout_;
}; |
Also, we need to update the framework.proto file Paddle/paddle/framework/framework.proto Lines 121 to 124 in aef1ab0
We should add a data type here |
What is the meaning of kAnyLayout? |
您好,此issue在近一个月内暂无更新,我们将于今天内关闭。若在关闭后您仍需跟进提问,可重新开启此问题,我们将在24小时内回复您。因关闭带来的不便我们深表歉意,请您谅解~感谢您对PaddlePaddle的支持! |
We have an enum type called DataLayout
Paddle/paddle/framework/data_layout.h
Lines 25 to 29 in aef1ab0
and we have a property
DataLayout Tensor::layout_
.The reason that we made this design is that we hope that for those tensors that represent images, we could have additional information describing the meaning of its dimensions.
However, we noticed that it is not a good idea to add the property
layout_
to classTensor
. Instead, we should create a new C++ classImageTensor
derived fromTensor
. For more details, please see the following comments:The text was updated successfully, but these errors were encountered: