tensorflow::ops::ParameterizedTruncatedNormal

#include <random_ops.h>

Outputs random values from a normal distribution.

Summary

The parameters may each be a

scalar which applies to the entire output, or a vector of length shape[0] which stores the parameters for each batch.

Arguments:

  • scope: A Scope object
  • shape: The shape of the output tensor. Batches are indexed by the 0th dimension.
  • means: The mean parameter of each batch.
  • stdevs: The standard deviation parameter of each batch. Must be greater than 0.
  • minvals: The minimum cutoff. May be -infinity.
  • maxvals: The maximum cutoff. May be +infinity, and must be more than the minval for each batch.

Optional attributes (see Attrs):

  • seed: If either seed or seed2 are set to be non-zero, the random number generator is seeded by the given seed. Otherwise, it is seeded by a random seed.
  • seed2: A second seed to avoid seed collision.

Returns:

  • Output: A matrix of shape num_batches x samples_per_batch, filled with random truncated normal values using the parameters for each row.

Constructors and Destructors

ParameterizedTruncatedNormal(const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input means, ::tensorflow::Input stdevs, ::tensorflow::Input minvals, ::tensorflow::Input maxvals)
ParameterizedTruncatedNormal(const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input means, ::tensorflow::Input stdevs, ::tensorflow::Input minvals, ::tensorflow::Input maxvals, const ParameterizedTruncatedNormal::Attrs & attrs)

Public attributes

output

Public functions

node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const

Public static functions

Seed(int64 x)
Seed2(int64 x)

Structs

tensorflow::ops::ParameterizedTruncatedNormal::Attrs

Optional attribute setters for ParameterizedTruncatedNormal.

Public attributes

output

::tensorflow::Output output

Public functions

ParameterizedTruncatedNormal

 ParameterizedTruncatedNormal(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input shape,
  ::tensorflow::Input means,
  ::tensorflow::Input stdevs,
  ::tensorflow::Input minvals,
  ::tensorflow::Input maxvals
)

ParameterizedTruncatedNormal

 ParameterizedTruncatedNormal(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input shape,
  ::tensorflow::Input means,
  ::tensorflow::Input stdevs,
  ::tensorflow::Input minvals,
  ::tensorflow::Input maxvals,
  const ParameterizedTruncatedNormal::Attrs & attrs
)

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

Public static functions

Seed

Attrs Seed(
  int64 x
)

Seed2

Attrs Seed2(
  int64 x
)