Package | Description |
---|---|
org.tensorflow.op | |
org.tensorflow.op.core |
Modifier and Type | Method and Description |
---|---|
Scope |
Scope.withName(String opName)
Return a new scope that uses the provided name for an op.
|
Scope |
Scope.withSubScope(String childScopeName)
Returns a new scope where added operations will have the provided name prefix.
|
Modifier and Type | Method and Description |
---|---|
static <T> Constant<T> |
Constant.create(Scope scope,
Class<T> type,
long[] shape,
ByteBuffer data)
Create a constant with data from the given buffer.
|
static Constant<Double> |
Constant.create(Scope scope,
long[] shape,
DoubleBuffer data)
Create a
DataType.DOUBLE constant with data from the given buffer. |
static Constant<Float> |
Constant.create(Scope scope,
long[] shape,
FloatBuffer data)
Create a
DataType.FLOAT constant with data from the given buffer. |
static Constant<Integer> |
Constant.create(Scope scope,
long[] shape,
IntBuffer data)
Create a
DataType.INT32 constant with data from the given buffer. |
static Constant<Long> |
Constant.create(Scope scope,
long[] shape,
LongBuffer data)
Create a
DataType.INT64 constant with data from the given buffer. |
static <T> Constant<T> |
Constant.create(Scope scope,
Object object,
Class<T> type)
Create a constant from a Java object.
|
Copyright © 2015–2018. All rights reserved.