pyspark.resource.ResourceInformation

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

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

Parameters
namestr

the name of the resource

addresseslist

an array of strings describing the addresses of the resource

Notes

This API is evolving.

Attributes

addresses

name