CMakeLists.txt 480 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
cc_test(
  op_tester
  SRCS op_tester.cc op_tester_config.cc
  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()