MCPcopy
hub / github.com/tensorflow/tfjs / executeAsync

Method executeAsync

tfjs-tfdf/src/tfdf_model.ts:136–141  ·  view source on GitHub ↗

* Executes inference for the model for given input tensors in async * fashion, use this method when your model contains control flow ops. * @param inputs tensor, tensor array or tensor map of the inputs for the * model, keyed by the input node names. * @param outputs output node name fro

(
      inputs: Tensor|Tensor[]|NamedTensorMap,
      outputs?: string|string[])

Source from the content-addressed store, hash-verified

134 * return a tensor map.
135 */
136 executeAsync(
137 inputs: Tensor|Tensor[]|NamedTensorMap,
138 outputs?: string|string[]): Promise<Tensor|Tensor[]> {
139 setAssets(this.assets);
140 return this.graphModel.executeAsync(inputs, outputs);
141 }
142
143 dispose() {
144 this.graphModel.dispose();

Callers 8

tfdf_model_test.tsFile · 0.45
detectMethod · 0.45
mainFunction · 0.45
convert_predict.tsFile · 0.45
model_config.jsFile · 0.45
getPredictFnForModelFunction · 0.45
predictOpFunction · 0.45

Calls 1

setAssetsFunction · 0.90

Tested by

no test coverage detected