MCPcopy Index your code
hub / github.com/tensorflow/tfjs / call

Function call

tfjs-layers/src/engine/container.ts:739–748  ·  view source on GitHub ↗

* Call the model on new inputs. * * In this case `call` just reapplies all ops in the graph to the new inputs * (e.g. build a new computational graph from the provided inputs). * * @param inputs A tensor or list of tensors. * @param mask A mask or list of masks. A mask can be eithe

(inputs: Tensor|Tensor[], kwargs: Kwargs)

Source from the content-addressed store, hash-verified

737 * are more than one outputs.
738 */
739 override call(inputs: Tensor|Tensor[], kwargs: Kwargs): Tensor|Tensor[] {
740 return tidy(() => {
741 inputs = generic_utils.toList(inputs);
742 const feedDict = new FeedDict();
743 for (let i = 0; i < this.inputs.length; ++i) {
744 feedDict.add(this.inputs[i], inputs[i]);
745 }
746 return execute(this.outputs, feedDict, kwargs) as Tensor | Tensor[];
747 });
748 }
749
750 /**
751 * Computes an output mask tensor.

Callers

nothing calls this directly

Calls 3

addMethod · 0.95
tidyFunction · 0.90
executeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…