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