* 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)
| 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`. |