Skip to content
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

clang compile error #7083

Closed
jacquesqiao opened this issue Dec 27, 2017 · 1 comment · Fixed by #7084
Closed

clang compile error #7083

jacquesqiao opened this issue Dec 27, 2017 · 1 comment · Fixed by #7084

Comments

@jacquesqiao
Copy link
Member

/Users/qiaolongfei/project/paddle/paddle/framework/data_transform_test.cc:34:45: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
std::array<proto::DataType, 2> kDataType = {proto::DataType::FP32,
                                            ^~~~~~~~~~~~~~~~~~~~~~
/Users/qiaolongfei/project/paddle/paddle/framework/data_transform_test.cc:37:32: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
std::array<Place, 2> kPlace = {CPUPlace(), CUDAPlace(0)};
                               ^~~~~~~~~~~~~~~~~~~~~~~~
                               {                       }
/Users/qiaolongfei/project/paddle/paddle/framework/data_transform_test.cc:40:5: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
    DataLayout::kNHWC, DataLayout::kNCHW,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    {                                   }
/Users/qiaolongfei/project/paddle/paddle/framework/data_transform_test.cc:44:5: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
    LibraryType::kPlain, LibraryType::kMKLDNN,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    {                                        }
xiaoxiaohehe001 added a commit to xiaoxiaohehe001/Paddle that referenced this issue Oct 25, 2021
* fix_docs_layout

* test=document_fix

* Update add_layout.md

* Update add_layout.md
xiaoxiaohehe001 added a commit to xiaoxiaohehe001/Paddle that referenced this issue Oct 25, 2021
* fix_docs_layout

* test=document_fix

* Update add_layout.md

* Update add_layout.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant