Lines Matching refs:model

9 function(tf_get_model model final_path)
10 string(FIND ${model} "http:" pos_http)
11 string(FIND ${model} "https:" pos_https)
13 message("Downloading model " ${model})
14 string(FIND ${model} "/" fname_start REVERSE)
16 string(SUBSTRING ${model} ${fname_start}+1 -1 fname)
18 file(DOWNLOAD ${model} ${CMAKE_CURRENT_BINARY_DIR}/${fname})
22 set(${final_path} ${CMAKE_CURRENT_BINARY_DIR}/${fname}_model/model PARENT_SCOPE)
24 tf_get_absolute_path(${model} ${CMAKE_CURRENT_BINARY_DIR} model_path)
29 # Generate a mock model for tests.
41 # Run the tensorflow compiler (saved_model_cli) on the saved model in the
42 # ${model} directory, looking for the ${tag_set} tag set, and the SignatureDef
47 function(tf_compile model tag_set signature_def_key fname cpp_class hdr_file obj_file)
48 tf_get_absolute_path(${model} ${CMAKE_CURRENT_BINARY_DIR} LLVM_ML_MODELS_ABSOLUTE)
49 message("Using model at " ${LLVM_ML_MODELS_ABSOLUTE})
73 function(tf_find_and_compile model default_url default_path test_model_generator tag_set signature_…
81 # don't care what the model path is
86 files for model " ${fname})
89 elseif("${model}" STREQUAL "none")
93 if ("${model}" STREQUAL "download")
94 # Crash if the user wants to download a model but a URL is set to "TO_BE_UPDATED"
97 " model url currently specified in cmake. You can generate a model"
102 set(model ${default_url}) variable
105 if ("${model}" STREQUAL "autogenerate")
106 set(model ${default_path}-autogenerated) variable
107 generate_mock_model(${test_model_generator} ${model})
110 tf_get_model(${model} LLVM_ML_MODELS_ABSOLUTE)