U
- data type for output
output@Operator(group="random") public final class RandomUniform<U extends TNumber> extends RawOp implements Operand<U>
[0, 1)
. The
lower bound 0 is included in the range, while the upper bound 1 is excluded.Modifier and Type | Class and Description |
---|---|
static class |
RandomUniform.Inputs |
static class |
RandomUniform.Options
Optional attributes for
RandomUniform |
Modifier and Type | Field and Description |
---|---|
static String |
OP_NAME
The name of this op, as known by TensorFlow core engine
|
Constructor and Description |
---|
RandomUniform(Operation operation) |
Modifier and Type | Method and Description |
---|---|
Output<U> |
asOutput()
Returns the symbolic handle of the tensor.
|
static <U extends TNumber> |
create(Scope scope,
Operand<? extends TNumber> shape,
Class<U> dtype,
RandomUniform.Options... options)
Factory method to create a class wrapping a new RandomUniform operation.
|
Output<U> |
output()
Gets output.
|
static RandomUniform.Options |
seed(Long seed)
Sets the seed option.
|
static RandomUniform.Options |
seed2(Long seed2)
Sets the seed2 option.
|
public static final String OP_NAME
public RandomUniform(Operation operation)
@Endpoint(describeByClass=true) public static <U extends TNumber> RandomUniform<U> create(Scope scope, Operand<? extends TNumber> shape, Class<U> dtype, RandomUniform.Options... options)
U
- data type for RandomUniform
output and operandsscope
- current scopeshape
- The shape of the output tensor.dtype
- The type of the output.options
- carries optional attribute valuespublic static RandomUniform.Options seed(Long seed)
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.public static RandomUniform.Options seed2(Long seed2)
seed2
- A second seed to avoid seed collision.public Output<U> output()
public Output<U> asOutput()
Operand
Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.
asOutput
in interface Operand<U extends TNumber>
OperationBuilder.addInput(Output)
Copyright © 2015–2022. All rights reserved.