Get the outputs of the network. Returns: Iterable[Tensor]
(self)
| 343 | return self._inputs.values() |
| 344 | |
| 345 | def get_outputs(self): |
| 346 | ''' |
| 347 | Get the outputs of the network. |
| 348 | |
| 349 | Returns: |
| 350 | Iterable[Tensor] |
| 351 | ''' |
| 352 | from .functional import Tensor |
| 353 | for i in range(self._trt_network.num_outputs): |
| 354 | tensor = self._trt_network.get_output(i) |
| 355 | yield Tensor(trt_tensor=tensor, |
| 356 | network=self, |
| 357 | is_network_input=False) |
| 358 | |
| 359 | def is_input(self, tensor) -> bool: |
| 360 | ''' |