org
.
platanios
.
tensorflow
.
api
.
learn
layers
package
layers
Linear Supertypes
AnyRef
,
Any
Ordering
Alphabetic
By Inheritance
Inherited
layers
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Type Members
abstract
class
Activation
extends
Layer
[
ops.Output
,
ops.Output
]
case class
AddBias
(
name:
String
,
initializer:
Initializer
=
RandomNormalInitializer()
)
extends
Layer
[
ops.Output
,
ops.Output
] with
Product
with
Serializable
case class
AudioSummary
(
name:
String
,
tag:
String
,
samplingRate:
tensors.Tensor
,
maxOutputs:
Int
=
3
,
family:
String
=
null
,
collections:
Set
[
Key
[
ops.Output
]] =
Set(Graph.Keys.SUMMARIES)
)
extends
Summary
with
Product
with
Serializable
case class
CReLU
(
name:
String
)
extends
Activation
with
Product
with
Serializable
case class
Cast
(
name:
String
,
dataType:
types.DataType
)
extends
Layer
[
ops.Output
,
ops.Output
] with
Product
with
Serializable
case class
Compose
[
T
,
R
,
S
]
(
name:
String
,
layer1:
Layer
[
T
,
R
]
,
layer2:
Layer
[
R
,
S
]
)
extends
Layer
[
T
,
S
] with
Product
with
Serializable
case class
Concatenate
[
T
,
R
]
(
name:
String
,
layers:
Seq
[
Layer
[
T
,
R
]]
)
extends
Layer
[
T
,
Seq
[
R
]] with
Product
with
Serializable
case class
Conv2D
(
name:
String
,
filterShape:
Shape
,
stride1:
Long
,
stride2:
Long
,
padding:
PaddingMode
,
dataFormat:
CNNDataFormat
=
CNNDataFormat.default
,
useCuDNNOnGPU:
Boolean
=
true
,
weightsInitializer:
Initializer
=
RandomNormalInitializer()
)
extends
Layer
[
ops.Output
,
ops.Output
] with
Product
with
Serializable
case class
Dropout
(
name:
String
,
keepProbability:
Float
,
noiseShape:
Shape
=
null
,
seed:
Option
[
Int
] =
None
)
extends
Layer
[
ops.Output
,
ops.Output
] with
Product
with
Serializable
case class
ELU
(
name:
String
)
extends
Activation
with
Product
with
Serializable
case class
Embedding
(
name:
String
,
vocabularySize:
Int
,
embeddingSize:
Int
,
dataType:
types.DataType
,
partitionStrategy:
ops.Embedding.PartitionStrategy
=
ops.Embedding.ModStrategy
,
transformFn: (
ops.Output
) ⇒
ops.Output
=
null
,
maxNorm:
tensors.Tensor
=
null
)
extends
Layer
[
ops.Output
,
ops.Output
] with
Product
with
Serializable
case class
Flatten
(
name:
String
)
extends
Layer
[
ops.Output
,
ops.Output
] with
Product
with
Serializable
case class
HistogramSummary
(
name:
String
,
tag:
String
,
family:
String
=
null
,
collections:
Set
[
Key
[
ops.Output
]] =
Set(Graph.Keys.SUMMARIES)
)
extends
Summary
with
Product
with
Serializable
case class
Identity
[
T
]
(
name:
String
)
extends
Layer
[
T
,
T
] with
Product
with
Serializable
case class
ImageSummary
(
name:
String
,
tag:
String
,
badColor:
tensors.Tensor
=
Tensor(UINT8, 255, 0, 0, 255)
,
maxOutputs:
Int
=
3
,
family:
String
=
null
,
collections:
Set
[
Key
[
ops.Output
]] =
Set(Graph.Keys.SUMMARIES)
)
extends
Summary
with
Product
with
Serializable
case class
Input
[
T
,
O
,
DA
,
D
,
S
]
(
_dataType:
DA
,
shape:
S
,
name:
String
=
"Input"
)
(
implicit
evDAToD:
Aux
[
DA
,
D
]
,
evDToO:
Aux
[
D
,
O
]
,
evOToT:
Aux
[
O
,
T
]
,
evData:
Aux
[
T
,
O
,
D
,
S
]
)
extends
Product
with
Serializable
case class
L2Loss
(
name:
String
)
extends
Loss
[(
ops.Output
,
ops.Output
)] with
Product
with
Serializable
abstract
class
Layer
[
T
,
R
]
extends
AnyRef
case class
Linear
(
name:
String
,
units:
Int
,
useBias:
Boolean
=
true
,
weightsInitializer:
Initializer
=
RandomNormalInitializer()
,
biasInitializer:
Initializer
=
RandomNormalInitializer()
)
extends
Layer
[
ops.Output
,
ops.Output
] with
Product
with
Serializable
case class
LogPoissonLoss
(
name:
String
,
computeFullLoss:
Boolean
=
false
)
extends
Loss
[(
ops.Output
,
ops.Output
)] with
Product
with
Serializable
case class
LogSoftmax
(
name:
String
)
extends
Layer
[
ops.Output
,
ops.Output
] with
Product
with
Serializable
abstract
class
Loss
[
T
]
extends
Layer
[
T
,
ops.Output
]
case class
Map
[
T
,
R
,
S
,
CC
[
A
]
<:
TraversableLike
[
A
,
CC
[
A
]]
]
(
name:
String
,
layer:
Layer
[
CC
[
T
],
CC
[
R
]]
,
mapLayer:
Layer
[
R
,
S
]
)
(
implicit
cbfRS:
CanBuildFrom
[
CC
[
R
],
S
,
CC
[
S
]]
)
extends
Layer
[
CC
[
T
],
CC
[
S
]] with
Product
with
Serializable
case class
MaxPool
(
name:
String
,
windowSize:
Seq
[
Long
]
,
stride1:
Long
,
stride2:
Long
,
padding:
PaddingMode
,
dataFormat:
CNNDataFormat
=
CNNDataFormat.default
)
extends
Layer
[
ops.Output
,
ops.Output
] with
Product
with
Serializable
case class
Mean
(
name:
String
)
extends
Layer
[
ops.Output
,
ops.Output
] with
Product
with
Serializable
case class
OneHot
(
name:
String
,
numberOfLabels:
Int
)
extends
Layer
[
ops.Output
,
ops.Output
] with
Product
with
Serializable
case class
ReLU
(
name:
String
,
alpha:
Float
=
0.0f
)
extends
Activation
with
Product
with
Serializable
case class
ReLU6
(
name:
String
)
extends
Activation
with
Product
with
Serializable
case class
SELU
(
name:
String
)
extends
Activation
with
Product
with
Serializable
case class
ScalarSummary
(
name:
String
,
tag:
String
,
family:
String
=
null
,
collections:
Set
[
Key
[
ops.Output
]] =
Set(Graph.Keys.SUMMARIES)
)
extends
Summary
with
Product
with
Serializable
case class
SequenceLoss
(
name:
String
,
averageAcrossTimeSteps:
Boolean
=
true
,
averageAcrossBatch:
Boolean
=
true
,
weights:
tensors.Tensor
=
null
,
lossFn: (
ops.Output
,
ops.Output
) ⇒
ops.Output
=
...
)
extends
Loss
[(
ops.Output
,
ops.Output
)] with
Product
with
Serializable
case class
Sigmoid
(
name:
String
)
extends
Activation
with
Product
with
Serializable
case class
SigmoidCrossEntropy
(
name:
String
)
extends
Loss
[(
ops.Output
,
ops.Output
)] with
Product
with
Serializable
case class
Softmax
(
name:
String
)
extends
Layer
[
ops.Output
,
ops.Output
] with
Product
with
Serializable
case class
SoftmaxCrossEntropy
(
name:
String
)
extends
Loss
[(
ops.Output
,
ops.Output
)] with
Product
with
Serializable
case class
Softplus
(
name:
String
)
extends
Activation
with
Product
with
Serializable
case class
Softsign
(
name:
String
)
extends
Activation
with
Product
with
Serializable
case class
SparseSoftmaxCrossEntropy
(
name:
String
)
extends
Loss
[(
ops.Output
,
ops.Output
)] with
Product
with
Serializable
case class
Squeeze
(
name:
String
,
axes:
Seq
[
Int
] =
null
)
extends
Layer
[
ops.Output
,
ops.Output
] with
Product
with
Serializable
case class
Sum
(
name:
String
)
extends
Layer
[
ops.Output
,
ops.Output
] with
Product
with
Serializable
abstract
class
Summary
extends
Layer
[
ops.Output
,
ops.Output
]
case class
Transpose
(
name:
String
,
permutation:
Seq
[
Int
]
)
extends
Layer
[
ops.Output
,
ops.Output
] with
Product
with
Serializable
Value Members
object
Activation
object
Basic
object
Embedding
extends
Serializable
object
Input
extends
Serializable
object
Layer
object
Loss
object
Math
object
NN
object
Summary
package
rnn
Inherited from
AnyRef
Inherited from
Any
Ungrouped