Marks the given tensor as an input of the tested LBANN model, and returns a matching LBANN Input node (or a Slice/Reshape thereof). :param tensor: The input NumPy array to use. :return: An LBANN layer object that will serve as the input.
(self, tensor: Any)
| 176 | extra_callbacks: List[lbann.Callback] = field(default_factory=list) |
| 177 | |
| 178 | def inputs(self, tensor: Any) -> lbann.Layer: |
| 179 | """ |
| 180 | Marks the given tensor as an input of the tested LBANN model, and |
| 181 | returns a matching LBANN Input node (or a Slice/Reshape thereof). |
| 182 | |
| 183 | :param tensor: The input NumPy array to use. |
| 184 | :return: An LBANN layer object that will serve as the input. |
| 185 | """ |
| 186 | self.input_tensor = tensor |
| 187 | inp = lbann.Input(data_field='samples') |
| 188 | return slice_to_tensors(inp, tensor) |
| 189 | |
| 190 | def inputs_like(self, *tensors) -> List[lbann.Layer]: |
| 191 | """ |
no test coverage detected