* Executes the predict function for `model` (`model.predict` for * tf.LayersModel and `model.executeAsync` for tf.GraphModel) and returns a * promise that resolves with information about the memory usage: * - `newBytes`: the number of new bytes allocated. * - `newTensors`: the number of new tens
(model, input, numProfiles = 1)
| 427 | * @param numProfiles The number of rounds for profiling the inference process. |
| 428 | */ |
| 429 | async function profileModelInference(model, input, numProfiles = 1) { |
| 430 | const predict = getPredictFnForModel(model, input); |
| 431 | return profileInference(predict, false, numProfiles); |
| 432 | } |
| 433 | |
| 434 | /** |
| 435 | * Executes `predict()` and returns a promise that resolves with information |
no test coverage detected
searching dependent graphs…