public class GraphBuilder extends Object
| Constructor and Description |
|---|
GraphBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static org.tensorflow.Output<Integer> |
constant(org.tensorflow.Graph g,
String name,
int value)
Builds an Output tensor with a single scalar value.
|
static <T> org.tensorflow.Output<T> |
constant(org.tensorflow.Graph g,
String name,
Object value,
Class<T> type)
Builds an Output tensor with a single scalar value.
|
static <T> org.tensorflow.Output<T> |
expandDims(org.tensorflow.Graph g,
String name,
org.tensorflow.Output<T> input,
org.tensorflow.Output<Integer> dim)
Adds a dimension to a TensorFlow Output tensor.
|
public static <T> org.tensorflow.Output<T> constant(org.tensorflow.Graph g,
String name,
Object value,
Class<T> type)
T - g - The TensorFlow graph to modify.name - The full name of the operation.value - The value output by the operation.type - The output datatype.public static org.tensorflow.Output<Integer> constant(org.tensorflow.Graph g, String name, int value)
g - The TensorFlow graph to modify.name - The full name of the operation.value - The value output by the operation.public static <T> org.tensorflow.Output<T> expandDims(org.tensorflow.Graph g,
String name,
org.tensorflow.Output<T> input,
org.tensorflow.Output<Integer> dim)
T - g - The TensorFlow graph to modify.name - The full name of the operation.input - The input operation to expand.dim - Copyright © 2018 The Laboratory of Experimental Biophysics. All rights reserved.