Skip to content

Commit

Permalink
[NFC][mlgo]Rename a variable in TensorFlowCompile.cmake
Browse files Browse the repository at this point in the history
Remaining var that had 'inlining' in name, despite being general-purpose
  • Loading branch information
mtrofin committed Dec 22, 2021
1 parent e5639b3 commit f99a8bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/cmake/modules/TensorFlowCompile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ endfunction()
function(tf_find_and_compile model default_url default_path generation_config tag_set signature_def_key fname cpp_class)
if ("${model}" STREQUAL "download")
# Crash if the user wants to download a model but a URL is set to "TO_BE_UPDATED"
if ("${LLVM_INLINER_MODEL_CURRENT_URL}" STREQUAL "TO_BE_UPDATED")
message(FATAL_ERROR "LLVM_INLINER_MODEL_PATH was set to 'download' but there is no model url currently specified in cmake - likely, the model interface recently changed, and so there is not a released model available.")
if ("${default_url}" STREQUAL "TO_BE_UPDATED")
message(FATAL_ERROR "Default URL was set to 'download' but there is no model url currently specified in cmake - likely, the model interface recently changed, and so there is not a released model available.")
endif()

set(model ${default_url})
Expand Down

0 comments on commit f99a8bc

Please sign in to comment.