You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
-
- find_package(Protobuf REQUIRED)
-
- include_directories(${PROTOBUF_INCLUDE_DIR})
-
- include_directories(${CMAKE_CURRENT_BINARY_DIR})
- protobuf_generate_cpp(TENSORFLOW_PROTO_SRCS TENSORFLOW_PROTO_HDRS
- attr_value.proto
- function.proto
- graph.proto
- node_def.proto
- op_def.proto
- resource_handle.proto
- tensor.proto
- tensor_shape.proto
- types.proto
- versions.proto
- )
-
- add_executable(tensorflow2ncnn tensorflow2ncnn.cpp ${TENSORFLOW_PROTO_SRCS} ${TENSORFLOW_PROTO_HDRS})
-
- target_link_libraries(tensorflow2ncnn ${PROTOBUF_LIBRARIES})
|