abacusai.memory_options — AbacusAI documentation

# abacusai.memory_options

## Classes

`CpuGpuMemorySpecs` | Includes the memory specs of the CPU/GPU
`AbstractApiClass` |
`MemoryOptions` | The overall memory options for executing a job

## Module Contents

class abacusai.memory_options.CpuGpuMemorySpecs(client, default=None, data=None)

  Bases: `abacusai.return_class.AbstractApiClass`

  Includes the memory specs of the CPU/GPU

  Parameters:

    - client (ApiClient) – An authenticated API Client instance

    - default (int) – the default memory size for the processing unit

    - data (list) – the list of memory sizes for the processing unit

  __repr__()

    Return repr(self).

  to_dict()

    Get a dict representation of the parameters in this class

    Returns:

      The dict value representation of the class parameters

    Return type:

      dict

class abacusai.memory_options.AbstractApiClass(client, id)
  __eq__(other)

    Return self==value.

  _get_attribute_as_dict(attribute)

class abacusai.memory_options.MemoryOptions(client, cpu={}, gpu={})

  Bases: `abacusai.return_class.AbstractApiClass`

  The overall memory options for executing a job

  Parameters:

    - client (ApiClient) – An authenticated API Client instance

    - cpu (CpuGpuMemorySpecs) – Contains information about the default CPU and list of CPU memory & size options

    - gpu (CpuGpuMemorySpecs) – Contains information about the default GPU and list of GPU memory & size options

  __repr__()

    Return repr(self).

  to_dict()

    Get a dict representation of the parameters in this class

    Returns:

      The dict value representation of the class parameters

    Return type:

      dict