<s> import theano . tensor as _T <EOL> class ClassNLLCriterion : <EOL> def symb_forward ( self , symb_input , symb_targets ) : <EOL> int_targets = _T . cast ( symb_targets , '<STR_LIT>' ) <EOL> return _T . mean ( - _T . log ( symb_input [ _T . arange ( symb_targets . shape [ <NUM_LIT:0> ] ) , int_targets ] ) ) </s>
