CMakeLists.txt 460 字节
Newer Older
1 2
cc_test(
  op_tester
3
  SRCS op_tester.cc
4 5 6 7 8 9 10 11 12 13 14
  DEPS memory
       timer
       framework_proto
       proto_desc
       lod_tensor
       op_registry
       device_context
       scope
       ${GLOB_OP_LIB}
       ${GLOB_OPERATOR_DEPS}
       eigen_function)
15 16 17 18 19 20

if(WITH_ONNXRUNTIME AND WIN32)
  # Copy onnxruntime for some c++ test in Windows, since the test will
  # be build only in CI, so suppose the generator in Windows is Ninja.
  copy_onnx(op_tester)
endif()