(self, condition: Tensor)
| 1479 | ''' |
| 1480 | |
| 1481 | def __init__(self, condition: Tensor): |
| 1482 | self.layer = default_trtnet().add_if_conditional() |
| 1483 | if condition.ndim() > 0: |
| 1484 | condition = view(condition, []) |
| 1485 | self.layer.set_condition(condition.trt_tensor) |
| 1486 | |
| 1487 | def add_input(self, input: Tensor) -> Tensor: |
| 1488 | in_node = self.layer.add_input(input.trt_tensor) |
nothing calls this directly
no test coverage detected