def do_cleanup(device: mvnc.Device, graph: mvnc.Graph) -> None: """Cleans up the NCAPI resources. Parameters ---------- device : mvncapi.Device Device instance that was initialized in the do_initialize method graph : mvncapi.Graph Graph instance that was initialized in the do_initialize method Returns ------- None """ graph.DeallocateGraph() device.CloseDevice()
def do_cleanup(self, device: mvnc.Device, graph: mvnc.Graph) -> None: graph.DeallocateGraph() device.CloseDevice()