Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
przepływ tensorowy:: ops:: MapaWyczyść
#include <data_flow_ops.h>
Op usuwa wszystkie elementy z bazowego kontenera.
Streszczenie
Argumenty:
Zwroty:
Atrybuty publiczne
Funkcje publiczne
MapaWyczyść
MapClear(
const ::tensorflow::Scope & scope,
const DataTypeSlice & dtypes
)
operator::tensorflow::Operacja
operator::tensorflow::Operation() const
Publiczne funkcje statyczne
Pojemność
Attrs Capacity(
int64 x
)
Pojemnik
Attrs Container(
StringPiece x
)
Limit pamięci
Attrs MemoryLimit(
int64 x
)
Wspólna nazwa
Attrs SharedName(
StringPiece x
)
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[],[],null,["# tensorflow::ops::MapClear Class Reference\n\ntensorflow::ops::MapClear\n=========================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\nOp removes all elements in the underlying container.\n\nSummary\n-------\n\nArguments:\n\n- scope: A [Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n\n\u003cbr /\u003e\n\nReturns:\n\n- the created [Operation](/versions/r2.1/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation)\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [MapClear](#classtensorflow_1_1ops_1_1_map_clear_1abb2a7456cc08a5865a585c8f6220a10c)`(const ::`[tensorflow::Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, const DataTypeSlice & dtypes)` ||\n| [MapClear](#classtensorflow_1_1ops_1_1_map_clear_1aca3d53c578e01f45917a766879fd19e8)`(const ::`[tensorflow::Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, const DataTypeSlice & dtypes, const `[MapClear::Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/map-clear/attrs#structtensorflow_1_1ops_1_1_map_clear_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|---------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_map_clear_1a15d6d0e48aeb5fa0dc4986d4c8781ee1) | [Operation](/versions/r2.1/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n\n| ### Public functions ||\n|------------------------------------------------------------------------------------------------------------------------|---------|\n| [operator::tensorflow::Operation](#classtensorflow_1_1ops_1_1_map_clear_1a2e99a647fe4658faa41caaa6f8da0f2a)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|---------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|\n| [Capacity](#classtensorflow_1_1ops_1_1_map_clear_1a57a5f3ee2dabb4a5a90525e05b3d5b84)`(int64 x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/map-clear/attrs#structtensorflow_1_1ops_1_1_map_clear_1_1_attrs) |\n| [Container](#classtensorflow_1_1ops_1_1_map_clear_1af2a0fae935978e1e2d9b8de81a1dc13c)`(StringPiece x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/map-clear/attrs#structtensorflow_1_1ops_1_1_map_clear_1_1_attrs) |\n| [MemoryLimit](#classtensorflow_1_1ops_1_1_map_clear_1af03fd7a53fb5de020d8705d0e69fca96)`(int64 x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/map-clear/attrs#structtensorflow_1_1ops_1_1_map_clear_1_1_attrs) |\n| [SharedName](#classtensorflow_1_1ops_1_1_map_clear_1a6d98afcc1cd43db3e2103d8673060eef)`(StringPiece x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/map-clear/attrs#structtensorflow_1_1ops_1_1_map_clear_1_1_attrs) |\n\n| ### Structs ||\n|------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::MapClear::Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/map-clear/attrs) | Optional attribute setters for [MapClear](/versions/r2.1/api_docs/cc/class/tensorflow/ops/map-clear#classtensorflow_1_1ops_1_1_map_clear). |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### MapClear\n\n```gdscript\n MapClear(\n const ::tensorflow::Scope & scope,\n const DataTypeSlice & dtypes\n)\n``` \n\n### MapClear\n\n```gdscript\n MapClear(\n const ::tensorflow::Scope & scope,\n const DataTypeSlice & dtypes,\n const MapClear::Attrs & attrs\n)\n``` \n\n### operator::tensorflow::Operation\n\n```gdscript\n operator::tensorflow::Operation() const \n``` \n\nPublic static functions\n-----------------------\n\n### Capacity\n\n```text\nAttrs Capacity(\n int64 x\n)\n``` \n\n### Container\n\n```text\nAttrs Container(\n StringPiece x\n)\n``` \n\n### MemoryLimit\n\n```text\nAttrs MemoryLimit(\n int64 x\n)\n``` \n\n### SharedName\n\n```text\nAttrs SharedName(\n StringPiece x\n)\n```"]]