提交 0457869a 编写于 作者: Z zhaojiaying01

1.change ANDROID_PLATFORM_VERSION to android-19; 2.fix feed op infershape.

上级 86065273
...@@ -24,6 +24,11 @@ void FeedOp<DeviceType, T>::InferShape() const { ...@@ -24,6 +24,11 @@ void FeedOp<DeviceType, T>::InferShape() const {
int col = this->param_.Col(); int col = this->param_.Col();
auto input_dims = this->param_.InputX()->at(col).dims(); auto input_dims = this->param_.InputX()->at(col).dims();
this->param_.Out()->Resize(input_dims); this->param_.Out()->Resize(input_dims);
if (input_dims.size() == 4 || input_dims.size() == 2) {
this->param_.Out()->Resize(input_dims);
} else {
this->param_.Out()->Resize(out_dims);
}
} }
} // namespace operators } // namespace operators
......
...@@ -59,7 +59,7 @@ build_for_android() { ...@@ -59,7 +59,7 @@ build_for_android() {
MODE="Release" MODE="Release"
ANDROID_PLATFORM_VERSION="android-22" ANDROID_PLATFORM_VERSION="android-19"
TOOLCHAIN_FILE="./tools/android-cmake/android.toolchain.cmake" TOOLCHAIN_FILE="./tools/android-cmake/android.toolchain.cmake"
ANDROID_ARM_MODE="arm" ANDROID_ARM_MODE="arm"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册