Lines Matching refs:model
105 * Gets the supported operations in a model.
107 * getSupportedOperations indicates which operations of a model are fully
111 * @param model A model whose operations--and their corresponding operands--
117 * - INVALID_ARGUMENT if provided model is invalid
123 getSupportedOperations_1_2(Model model)
129 * There are two types of cache file descriptors provided to the driver: model cache
136 * The model cache is for caching security-sensitive data such as compiled
138 * to the model cache may affect the driver's execution behavior, and a malicious
140 * the driver must always check whether the model cache is corrupted before
141 * preparing the model from cache.
144 * implementation needs to cache a single prepared model. Returning 0 for both types
157 * @return numModelCache An unsigned integer indicating how many files for model cache
158 * the driver needs to cache a single prepared model. It must
161 * the driver needs to cache a single prepared model. It must
168 * Asynchronously creates a prepared model for execution and optionally saves it
172 * representations to a model for execution, possibly including
173 * transformations on the constant data, optimization on the model's graph,
174 * or compilation into the device's native binary format. The model itself
178 * the prepared model to cache files for faster model compilation time
179 * when the same model preparation is requested in the future. There are
180 * two types of cache file handles provided to the driver: model cache
191 * The model is prepared asynchronously with respect to the caller. The
193 * related to preparing the model (as opposed to saving the prepared model to
197 * prepareModel function that are related to preparing the model are valid and
199 * to prepare the model in the background, and immediately return from
205 * When the asynchronous task has finished preparing the model, it must
207 * prepareModel. If the model was prepared successfully, the callback object
209 * produced IPreparedModel object. If an error occurred preparing the model,
213 * Optionally, the driver may save the prepared model to cache during the
215 * not affect the status of preparing the model. Even if the input arguments
217 * the prepareModel function must finish preparing the model. The driver
221 * The only information that may be unknown to the model at this stage is
224 * the prepared model may only be finished when it is paired with a set of
225 * inputs to the model. Note that the same prepared model object may be
229 * Multiple threads may call prepareModel on the same model concurrently.
231 * @param model The model to be prepared for execution.
233 * model.
247 * identifying the prepared model. The same token will be provided when retrieving
248 * the prepared model from the cache files with prepareModelFromCache.
255 * preparing the model for execution and the prepared model if
257 * must be called exactly once, even if the model could not be prepared.
258 * @return status Error status of launching a task which prepares the model
264 * model is invalid
266 prepareModel_1_2(Model model, ExecutionPreference preference,
273 * Creates a prepared model from cache files for execution.
275 * prepareModelFromCache is used to retrieve a prepared model directly from
276 * cache files to avoid slow model compilation time. There are
277 * two types of cache file handles provided to the driver: model cache
288 * The model is prepared asynchronously with respect to the caller. The
298 * asynchronous task to prepare the model in the background, and immediately return
304 * When the asynchronous task has finished preparing the model, it must
306 * prepareModelFromCache. If the model was prepared successfully, the
309 * the model, the callback object must be invoked with the appropriate
312 * The only information that may be unknown to the model at this stage is
315 * the prepared model may only be finished when it is paired with a set of
316 * inputs to the model. Note that the same prepared model object may be
329 * identifying the prepared model. It is the same token provided when saving
335 * preparing the model for execution and the prepared model if
337 * must be called exactly once, even if the model could not be prepared.
338 * @return status Error status of launching a task which prepares the model