model
ModelOp
¶
Bases: TensorOp
This class performs forward passes of a neural network over batch data to generate predictions.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
model |
Union[tf.keras.Model, torch.nn.Module]
|
A model compiled by fe.build. |
required |
inputs |
Union[None, str, Iterable[str]]
|
String key of input training data. |
None
|
outputs |
Union[None, str, Iterable[str]]
|
String key under which to store predictions. |
None
|
mode |
Union[None, str, Iterable[str]]
|
What mode(s) to execute this Op in. For example, "train", "eval", "test", or "infer". To execute regardless of mode, pass None. To execute in all modes except for a particular one, you can pass an argument like "!infer" or "!train". |
None
|
trainable |
bool
|
Indicates whether the model should have its weights tracked for update. |
True
|