Performs various setup activities to set this operator before it can be run. :param input: The input tensor to run the operator on.
(self, input)
| 93 | |
| 94 | @abstractmethod |
| 95 | def setup(self, input): |
| 96 | """ |
| 97 | Performs various setup activities to set this operator before it can be run. |
| 98 | :param input: The input tensor to run the operator on. |
| 99 | """ |
| 100 | if hasattr(cvcuda, "clear_cache"): |
| 101 | cvcuda.clear_cache() |
| 102 | |
| 103 | @abstractmethod |
| 104 | def run(self, input): |