# tensorflow::ops::MapClear Class Reference

# tensorflow::
ops::
MapClear

`
#include <data_flow_ops.h>
`


Op removes all elements in the underlying container.

## Summary


Args:

- scope: A [Scope](https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object

<br />


Returns:

- the created `
  https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation
  `

<br />

| ### Constructors and Destructors ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/map-clear#classtensorflow_1_1ops_1_1_map_clear_1abb2a7456cc08a5865a585c8f6220a10c (const :: https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope & scope, const DataTypeSlice & dtypes) ` ||
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/map-clear#classtensorflow_1_1ops_1_1_map_clear_1aca3d53c578e01f45917a766879fd19e8 (const :: https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope & scope, const DataTypeSlice & dtypes, const https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/map-clear/attrs#structtensorflow_1_1ops_1_1_map_clear_1_1_attrs & attrs) ` ||

| ### Public attributes ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/map-clear#classtensorflow_1_1ops_1_1_map_clear_1a15d6d0e48aeb5fa0dc4986d4c8781ee1 ` | ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation ` |

| ### Public functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/map-clear#classtensorflow_1_1ops_1_1_map_clear_1a2e99a647fe4658faa41caaa6f8da0f2a () const ` | ` ` |

| ### Public static functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/map-clear#classtensorflow_1_1ops_1_1_map_clear_1a57a5f3ee2dabb4a5a90525e05b3d5b84 (int64 x) ` | ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/map-clear/attrs#structtensorflow_1_1ops_1_1_map_clear_1_1_attrs ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/map-clear#classtensorflow_1_1ops_1_1_map_clear_1af2a0fae935978e1e2d9b8de81a1dc13c (StringPiece x) ` | ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/map-clear/attrs#structtensorflow_1_1ops_1_1_map_clear_1_1_attrs ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/map-clear#classtensorflow_1_1ops_1_1_map_clear_1af03fd7a53fb5de020d8705d0e69fca96 (int64 x) ` | ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/map-clear/attrs#structtensorflow_1_1ops_1_1_map_clear_1_1_attrs ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/map-clear#classtensorflow_1_1ops_1_1_map_clear_1a6d98afcc1cd43db3e2103d8673060eef (StringPiece x) ` | ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/map-clear/attrs#structtensorflow_1_1ops_1_1_map_clear_1_1_attrs ` |

| ### Structs ||
|---|---|
| [tensorflow:: ops:: MapClear:: Attrs](https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/map-clear/attrs) | Optional attribute setters for [MapClear](https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/map-clear#classtensorflow_1_1ops_1_1_map_clear) . |

## Public attributes

### operation

```
Operation operation
```

## Public functions

### MapClear

```
 MapClear(
  const ::tensorflow::Scope & scope,
  const DataTypeSlice & dtypes
)
```

### MapClear

```
 MapClear(
  const ::tensorflow::Scope & scope,
  const DataTypeSlice & dtypes,
  const MapClear::Attrs & attrs
)
```

### operator::tensorflow::Operation

```
 operator::tensorflow::Operation() const 
```

## Public static functions

### Capacity

```
Attrs Capacity(
  int64 x
)
```

### Container

```
Attrs Container(
  StringPiece x
)
```

### MemoryLimit

```
Attrs MemoryLimit(
  int64 x
)
```

### SharedName

```
Attrs SharedName(
  StringPiece x
)
```