grain ~master (2021-05-15T05:53:16Z)
Dub
Repo
negativeLogLikelihood
grain
chain
//// Loss negative loglikelihood - log p(x). note that p(x) should be normalized
auto
negativeLogLikelihood
(
alias
Storage
)
(
Variable
!(
float
, 2,
Storage
)
x
,
Variable
!(
int
, 1,
Storage
)
t
,
int
ignoreIndex
= -100
)
Meta
Source
See Implementation
grain
chain
functions
abs
addVec
convolution
cos
crossEntropy
dropout
exp
log
logSoftmax
matMul
neg
negativeLogLikelihood
opBinaryFunc
pow
reciprocal
relu
sigmoid
sin
squeeze
sum
tan
tanh
unsqueeze
view
structs
Convolution
Embedding
Linear
//// Loss negative loglikelihood - log p(x). note that p(x) should be normalized