Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
przepływ tensorowy:: ops:: Pusty:: Atrybuty
#include <array_ops.h>
Opcjonalne moduły ustawiające atrybuty dla Desert .
Streszczenie
Atrybuty publiczne |
---|
init_ = false | bool |
Funkcje publiczne |
---|
Init (bool x) | Jeśli True, zainicjuj zwrócony tensor domyślną wartością dtype. |
Atrybuty publiczne
inicjacja_
bool tensorflow::ops::Empty::Attrs::init_ = false
Funkcje publiczne
Rozpoczęcie
TF_MUST_USE_RESULT Attrs tensorflow::ops::Empty::Attrs::Init(
bool x
)
Jeśli True, zainicjuj zwrócony tensor domyślną wartością dtype.
W przeciwnym razie implementacja może nie inicjować zawartości tensora.
Domyślnie jest to fałsz
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-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[],[],null,["# tensorflow::ops::Empty::Attrs Struct Reference\n\ntensorflow::ops::Empty::Attrs\n=============================\n\n`#include \u003carray_ops.h\u003e`\n\nOptional attribute setters for [Empty](/versions/r2.0/api_docs/cc/class/tensorflow/ops/empty#classtensorflow_1_1ops_1_1_empty).\n\nSummary\n-------\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------------------------|--------|\n| [init_](#structtensorflow_1_1ops_1_1_empty_1_1_attrs_1adb5b1a4761d83ec50f0912bcb08f1293)` = false` | `bool` |\n\n| ### Public functions ||\n|---------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Init](#structtensorflow_1_1ops_1_1_empty_1_1_attrs_1a96c0e1654265db0e2bf14017a289eb09)`(bool x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/empty/attrs#structtensorflow_1_1ops_1_1_empty_1_1_attrs) If True, initialize the returned tensor with the default value of dtype. |\n\nPublic attributes\n-----------------\n\n### init_\n\n```scdoc\nbool tensorflow::ops::Empty::Attrs::init_ = false\n``` \n\nPublic functions\n----------------\n\n### Init\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::Empty::Attrs::Init(\n bool x\n)\n``` \nIf True, initialize the returned tensor with the default value of dtype.\n\nOtherwise, the implementation is free not to initializethe tensor's content.\n\nDefaults to false"]]