Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::Empty::Attrs
#include <array_ops.h>
Optional attribute setters for Empty.
Summary
Public attributes
|
init_ = false
|
bool
|
Public functions
|
Init(bool x)
|
If True, initialize the returned tensor with the default value of dtype.
|
Public attributes
init_
bool tensorflow::ops::Empty::Attrs::init_ = false
Public functions
Init
TF_MUST_USE_RESULT Attrs tensorflow::ops::Empty::Attrs::Init(
bool x
)
If True, initialize the returned tensor with the default value of dtype.
Otherwise, the implementation is free not to initializethe tensor's content.
Defaults to false
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2021-11-15 UTC.
[null,null,["Last updated 2021-11-15 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](/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](/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"]]