Skip to content

Commit

Permalink
fix bug on cmake macro to add ONNXModelWriter (#4375)
Browse files Browse the repository at this point in the history
Summary:
correct the file path error

Documentation:

[Optional Fixes #issue]
Pull Request resolved: #4375

Test Plan: Please see a detailed explanation of how to fill out the fields in the relevant sections in PULL_REQUEST.md.

Reviewed By: yinghai

Differential Revision: D20786580

Pulled By: opti-mix

fbshipit-source-id: d1c5b4a1f1b8fb128a13c5baced3f39374e18d37
  • Loading branch information
maxwillzq authored and facebook-github-bot committed Apr 1, 2020
1 parent 8ae5449 commit b52b141
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/modules/GlowExternalBackends.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,11 @@ FOREACH(backend ${SUBDIRS})
# Check for ONNXModelWriters in the current backend subdirectory.
file(GLOB backend_specific_onnx_model_writers
RELATIVE "${backend_ONNX_DIR}"
"${backend_ONNX_DIR}/*ONNXModelWriter.cpp")
"${backend_ONNX_DIR}/ONNX/*ONNXModelWriter.cpp")
# Include these files into ONNXModelWriterIncludes.h.
foreach(onnx_model_writer ${backend_specific_onnx_model_writers})
file(APPEND "${Exporter_Include_DIR}/ONNXModelWriterIncludes.h"
"#include \"${EXTERNAL_BACKENDS_DIR}/${backend}/ONNX/${onnx_model_writer}\"\n")
"#include \"${EXTERNAL_BACKENDS_DIR}/${backend}/${onnx_model_writer}\"\n")
endforeach()
endif()
ENDFOREACH()
Expand Down

0 comments on commit b52b141

Please sign in to comment.