Package io.github.kirstenali.deepj.nn
Class EncoderAttention
java.lang.Object
io.github.kirstenali.deepj.nn.Module
io.github.kirstenali.deepj.nn.EncoderAttention
Bidirectional multi-head attention with optional padding masks and backend-resident softmax.
-
Constructor Summary
ConstructorsConstructorDescriptionEncoderAttention(int width, int heads, float dropout, Random random, ParameterFactory parameters) -
Method Summary
Methods inherited from class io.github.kirstenali.deepj.nn.Module
buffers, eval, isTraining, parameters, setTraining, trainMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.kirstenali.deepj.layers.Layer
forward, supportsIncrementalInference
-
Constructor Details
-
EncoderAttention
public EncoderAttention(int width, int heads, float dropout, Random random, ParameterFactory parameters)
-
-
Method Details