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

Method predictOnBatch

tfjs-layers/src/models.ts:801–806  ·  view source on GitHub ↗

* Returns predictions for a single batch of samples. * * @param x: Input samples, as a Tensor, or list of Tensors (if the model * has multiple inputs). * @return Tensor(s) of predictions

(x: Tensor)

Source from the content-addressed store, hash-verified

799 * @return Tensor(s) of predictions
800 */
801 override predictOnBatch(x: Tensor): Tensor|Tensor[] {
802 if (this.model == null) {
803 this.build();
804 }
805 return this.model.predictOnBatch(x);
806 }
807
808 /**
809 * See `LayersModel.compile`.

Callers 1

models_test.tsFile · 0.45

Calls 1

buildMethod · 0.95

Tested by

no test coverage detected