org
.
platanios
.
tensorflow
.
api
.
ops
.
seq2seq
.
decoders
BeamSearchDecoder
Related Docs:
object BeamSearchDecoder
|
package decoders
class
BeamSearchDecoder
[
S
,
SS
]
extends
Decoder
[
Output
,
core.Shape
,
S
,
SS
,
decoders.BeamSearchDecoder.Output
, (
core.Shape
,
core.Shape
,
core.Shape
),
State
[
S
,
SS
], (
SS
,
core.Shape
,
core.Shape
,
core.Shape
),
FinalOutput
,
State
[
S
,
SS
]]
Linear Supertypes
Decoder
[
Output
,
core.Shape
,
S
,
SS
,
BeamSearchDecoder.Output
, (
core.Shape
,
core.Shape
,
core.Shape
),
State
[
S
,
SS
], (
SS
,
core.Shape
,
core.Shape
,
core.Shape
),
FinalOutput
,
State
[
S
,
SS
]],
AnyRef
,
Any
Ordering
Alphabetic
By Inheritance
Inherited
BeamSearchDecoder
Decoder
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
new
BeamSearchDecoder
(
cell:
RNNCell
[
Output
,
core.Shape
,
S
,
SS
]
,
initialCellState:
S
,
embeddingFn: (
Output
) ⇒
Output
,
beginTokens:
Output
,
endToken:
Output
,
beamWidth:
Int
,
lengthPenalty:
LengthPenalty
=
NoPenalty
,
outputLayer: (
Output
) ⇒
Output
=
(o: Output) => o
,
name:
String
=
"BeamSearchRNNDecoder"
)
(
implicit
evOutput:
Aux
[
Output
,
core.Shape
]
,
evS:
Aux
[
S
,
SS
]
)
Value Members
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
val
batchSize
:
Output
Definition Classes
BeamSearchDecoder
→
Decoder
val
beamWidth
:
Int
val
beginTokens
:
Output
val
cell
:
RNNCell
[
Output
,
core.Shape
,
S
,
SS
]
Definition Classes
BeamSearchDecoder
→
Decoder
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
decode
(
outputTimeMajor:
Boolean
=
false
,
imputeFinished:
Boolean
=
false
,
maximumIterations:
Output
=
null
,
parallelIterations:
Int
=
32
,
swapMemory:
Boolean
=
false
,
name:
String
=
s"$name/DynamicRNNDecode"
)
: (
FinalOutput
,
State
[
S
,
SS
],
Output
)
Definition Classes
Decoder
val
embeddingFn
: (
Output
) ⇒
Output
val
endToken
:
Output
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
finalize
(
output:
BeamSearchDecoder.Output
,
state:
State
[
S
,
SS
]
,
sequenceLengths:
Output
)
: (
FinalOutput
,
State
[
S
,
SS
],
Output
)
Definition Classes
BeamSearchDecoder
→
Decoder
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
val
initialCellState
:
S
def
initialize
()
: (
Output
,
Output
,
State
[
S
,
SS
])
Definition Classes
BeamSearchDecoder
→
Decoder
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
val
lengthPenalty
:
LengthPenalty
val
name
:
String
Definition Classes
BeamSearchDecoder
→
Decoder
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
next
(
time:
Output
,
input:
Output
,
state:
State
[
S
,
SS
]
)
: (
BeamSearchDecoder.Output
,
State
[
S
,
SS
],
Output
,
Output
)
Definition Classes
BeamSearchDecoder
→
Decoder
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
val
outputLayer
: (
Output
) ⇒
Output
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
toString
()
:
String
Definition Classes
AnyRef → Any
val
tracksOwnFinished
:
Boolean
Definition Classes
BeamSearchDecoder
→
Decoder
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
zeroOutput
()
:
BeamSearchDecoder.Output
Definition Classes
BeamSearchDecoder
→
Decoder
Inherited from
Decoder
[
Output
,
core.Shape
,
S
,
SS
,
BeamSearchDecoder.Output
, (
core.Shape
,
core.Shape
,
core.Shape
),
State
[
S
,
SS
], (
SS
,
core.Shape
,
core.Shape
,
core.Shape
),
FinalOutput
,
State
[
S
,
SS
]]
Inherited from
AnyRef
Inherited from
Any
Ungrouped