tensorflow::ops::Empty::Attrs

#include <array_ops.h>

Optional attribute setters for Empty.

Summary

Public attributes
init_ = false
bool
Public functions
Init(bool x)
TF_MUST_USE_RESULT Attrs
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

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/cc/struct/tensorflow/ops/empty/attrs