未验证 提交 947cda26 编写于 作者: 石晓伟 提交者: GitHub

fix build errors, test=develop (#2728)

上级 7950edd7
...@@ -13,7 +13,6 @@ See the License for the specific language governing permissions and ...@@ -13,7 +13,6 @@ See the License for the specific language governing permissions and
limitations under the License. */ limitations under the License. */
syntax = "proto2"; syntax = "proto2";
option optimize_for = LITE_RUNTIME;
package paddle.framework.proto; package paddle.framework.proto;
// Any incompatible changes to ProgramDesc and its dependencies should // Any incompatible changes to ProgramDesc and its dependencies should
......
...@@ -4,7 +4,7 @@ lite_cc_library(subgraph_detector ...@@ -4,7 +4,7 @@ lite_cc_library(subgraph_detector
lite_cc_library(subgraph_pass lite_cc_library(subgraph_pass
SRCS subgraph_pass.cc SRCS subgraph_pass.cc
DEPS mir_pass types context ${mir_fusers} subgraph_detector) DEPS mir_pass types context ${mir_fusers} subgraph_detector)
if (WITH_TESTING) if (WITH_TESTING AND NOT LITE_WITH_CUDA)
lite_cc_test(test_subgraph_detector lite_cc_test(test_subgraph_detector
SRCS subgraph_detector_test.cc SRCS subgraph_detector_test.cc
DEPS subgraph_detector mir_passes gflags model_parser cxx_api DEPS subgraph_detector mir_passes gflags model_parser cxx_api
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include "lite/kernels/cuda/conv_compute.h" #include "lite/kernels/cuda/conv_compute.h"
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <memory> #include <memory>
#include <random>
#include <utility> #include <utility>
#include <vector> #include <vector>
......
...@@ -78,7 +78,7 @@ class LayerNormCompute : public KernelLite<TARGET(kX86), PRECISION(kFloat)> { ...@@ -78,7 +78,7 @@ class LayerNormCompute : public KernelLite<TARGET(kX86), PRECISION(kFloat)> {
Scale->data<T>(), Scale->data<T>(),
Bias->data<T>(), Bias->data<T>(),
static_cast<int>(left), static_cast<int>(left),
static_cast<const float>(epsilon), epsilon,
right); right);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册