Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
przepływ tensorowy:: ops:: Rozmiar mapy
#include <data_flow_ops.h>
Op zwraca liczbę elementów w bazowym kontenerze.
Streszczenie
Argumenty:
Zwroty:
Atrybuty publiczne
Funkcje publiczne
Rozmiar mapy
MapSize(
const ::tensorflow::Scope & scope,
const DataTypeSlice & dtypes
)
węzeł
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Wyjście
operator::tensorflow::Output() 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::MapSize Class Reference\n\ntensorflow::ops::MapSize\n========================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\nOp returns the number of 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- [Output](/versions/r2.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): The size tensor.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [MapSize](#classtensorflow_1_1ops_1_1_map_size_1a88c2287aaee2e54989feddca67500907)`(const ::`[tensorflow::Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, const DataTypeSlice & dtypes)` ||\n| [MapSize](#classtensorflow_1_1ops_1_1_map_size_1a7d40c8041f9cadd36547b38cdb7313ca)`(const ::`[tensorflow::Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, const DataTypeSlice & dtypes, const `[MapSize::Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/map-size/attrs#structtensorflow_1_1ops_1_1_map_size_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|--------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_map_size_1ae1efc931bc3844c66ecdf5aa8d87ab3b) | [Operation](/versions/r2.1/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [size](#classtensorflow_1_1ops_1_1_map_size_1afc34434fd421088c3eb7b8754b304c5f) | `::`[tensorflow::Output](/versions/r2.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|--------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_map_size_1ae0c7743d3c1cbe50d90a4239a6ce5077)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_map_size_1aa41a8023725a6e3d947547c942d10c1e)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_map_size_1afd6f90785b9762747d138cc89ebd0f35)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|--------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------|\n| [Capacity](#classtensorflow_1_1ops_1_1_map_size_1a804c4c9e337506ac76e8fdad08a65570)`(int64 x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/map-size/attrs#structtensorflow_1_1ops_1_1_map_size_1_1_attrs) |\n| [Container](#classtensorflow_1_1ops_1_1_map_size_1a51283875596704ed9da7e5dde786af03)`(StringPiece x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/map-size/attrs#structtensorflow_1_1ops_1_1_map_size_1_1_attrs) |\n| [MemoryLimit](#classtensorflow_1_1ops_1_1_map_size_1abbd8538c054507746a46afea57d51339)`(int64 x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/map-size/attrs#structtensorflow_1_1ops_1_1_map_size_1_1_attrs) |\n| [SharedName](#classtensorflow_1_1ops_1_1_map_size_1ae32734e03b927164ba648e7844c73f1c)`(StringPiece x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/map-size/attrs#structtensorflow_1_1ops_1_1_map_size_1_1_attrs) |\n\n| ### Structs ||\n|----------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::MapSize::Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/map-size/attrs) | Optional attribute setters for [MapSize](/versions/r2.1/api_docs/cc/class/tensorflow/ops/map-size#classtensorflow_1_1ops_1_1_map_size). |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### size\n\n```text\n::tensorflow::Output size\n``` \n\nPublic functions\n----------------\n\n### MapSize\n\n```gdscript\n MapSize(\n const ::tensorflow::Scope & scope,\n const DataTypeSlice & dtypes\n)\n``` \n\n### MapSize\n\n```gdscript\n MapSize(\n const ::tensorflow::Scope & scope,\n const DataTypeSlice & dtypes,\n const MapSize::Attrs & attrs\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() 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```"]]