qat.generators.RemoteBatchGenerator
A remote generator started in server mode can be accessed by connecting to the port and IP address. The usage of a remote generator is detailed in the executing section
- class qat.generators.RemoteBatchGenerator(port: int = None, ip: unicode = None)
Remote batch generator. This batch generator creates connection between you and a remote
AbstractGenerator
started in server mode (c.f.serve()
)- Parameters
port (int, optional) – a port to connect to
ip (str, optional) – the IP address to connect to
- generate(specs, *args, **kwargs)
Call generate method of the remote batch generator object
- Parameters
specs (
HardwareSpecs
) – hardware specs*args (*any) – additional arguments passed to the generator
**kwargs (**any) – additional keyword arguments passed to the generator
- Returns
generated batch
- Return type
- post_process(batch_result)
Call post process method of the remote batch generator object
- Parameters
batch_result (
BatchResult
) – batch result to post process- Returns
Any python object returned by the remote batch generator
- Return type
object