W3cubDocs

/TensorFlow C++

tensorflow::ops::ImmutableConst

#include <array_ops.h>

Returns immutable tensor from memory region.

Summary

The current implementation memmaps the tensor from a file.

Arguments:

  • scope: A Scope object
  • dtype: Type of the returned tensor.
  • shape: Shape of the returned tensor.
  • memory_region_name: Name of readonly memory region used by the tensor, see NewReadOnlyMemoryRegionFromFile in tensorflow::Env.

Returns:

Constructors and Destructors
ImmutableConst(const ::tensorflow::Scope & scope, DataType dtype, TensorShape shape, StringPiece memory_region_name)
Public attributes
tensor
Public functions
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const

Public attributes

tensor

::tensorflow::Output tensor

Public functions

ImmutableConst

 ImmutableConst(
  const ::tensorflow::Scope & scope,
  DataType dtype,
  TensorShape shape,
  StringPiece memory_region_name
)

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

operator::tensorflow::Input() const 

operator::tensorflow::Output

operator::tensorflow::Output() const 

© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/immutable-const.html