Class GPUInfo

java.lang.Object
org.apache.flink.externalresource.gpu.GPUInfo
All Implemented Interfaces:
org.apache.flink.api.common.externalresource.ExternalResourceInfo

public class GPUInfo extends Object implements org.apache.flink.api.common.externalresource.ExternalResourceInfo
Information for GPU resource. Currently only including the GPU index.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getProperty

      public Optional<String> getProperty(String key)
      Specified by:
      getProperty in interface org.apache.flink.api.common.externalresource.ExternalResourceInfo
    • getKeys

      public Collection<String> getKeys()
      Specified by:
      getKeys in interface org.apache.flink.api.common.externalresource.ExternalResourceInfo