pyspark.resource.ResourceInformation#
- class pyspark.resource.ResourceInformation(name, addresses)[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
- addresseslist
a list of strings describing the addresses of the resource
See also
Notes
This API is evolving.
Attributes
addresses
- Returns
name
- Returns