# tfc.MachineConfig

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/cloud/blob/v0.1.15/src/python/tensorflow_cloud/core/machine_config.py#L58-L93) |

Represents the configuration or type of machine to be used.

    tfc.MachineConfig(
        cpu_cores=8, memory=30, accelerator_type='auto', accelerator_count=1
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `cpu_cores` | Number of virtual CPU cores. Defaults to 8. |
| `memory` | Amount of memory in GB. Defaults to 30GB. |
| `accelerator_type` | Type of the accelerator to be used ('K80', 'P100', 'V100', 'P4', 'T4', 'TPU_V2', 'TPU_V3') or 'CPU' for no accelerator. Defaults to 'auto', which maps to a standard gpu config such as 'P100'. |
| `accelerator_count` | Number of accelerators. Defaults to 1. |

<br />

## Methods

### `validate`

[View source](https://github.com/tensorflow/cloud/blob/v0.1.15/src/python/tensorflow_cloud/core/machine_config.py#L87-L93)

    validate()

Checks that the machine configuration created is valid for GCP.