public static class AttentionVertex.Builder extends Object
Modifier and Type | Field and Description |
---|---|
protected WeightInit |
weightInit
Weight initialization scheme
|
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AttentionVertex |
build() |
AttentionVertex.Builder |
headSize(long headSize)
Size of Attention Heads
|
AttentionVertex.Builder |
nHeads(int nHeads)
Number of Attention Heads
|
AttentionVertex.Builder |
nInKeys(long nInKeys)
Size of Keys
|
AttentionVertex.Builder |
nInQueries(long nInQueries)
Size of Queries
|
AttentionVertex.Builder |
nInValues(long nInValues)
Size of Values
|
AttentionVertex.Builder |
nOut(long nOut)
Output Size
|
AttentionVertex.Builder |
projectInput(boolean projectInput)
Toggle to enable / disable projection of inputs (key, values, queries).
|
AttentionVertex.Builder |
weightInit(WeightInit weightInit)
Weight initialization scheme
|
protected WeightInit weightInit
public AttentionVertex.Builder nInKeys(long nInKeys)
public AttentionVertex.Builder nInQueries(long nInQueries)
public AttentionVertex.Builder nInValues(long nInValues)
public AttentionVertex.Builder headSize(long headSize)
public AttentionVertex.Builder nHeads(int nHeads)
public AttentionVertex.Builder nOut(long nOut)
public AttentionVertex.Builder weightInit(WeightInit weightInit)
public AttentionVertex.Builder projectInput(boolean projectInput)
public AttentionVertex build()
Copyright © 2022. All rights reserved.