pyspark.resource.ResourceInformation¶

class pyspark.resource.ResourceInformation(name: str, addresses: List[str])[source]

Class to hold information about a type of Resource. A resource could be a GPU, FPGA, etc. The array of addresses are resource specific and its up to the user to interpret the address.

One example is GPUs, where the addresses would be the indices of the GPUs

New in version 3.0.0.

Parameters
namestr

the name of the resource

 addresses name