Loading TOC...

cntk.variableNeedsGradient

cntk.variableNeedsGradient(
   $variable as cntk.variable
) as Boolean

Summary

Returns if the variable needs gradient.

Parameters
$variable The input variable.

Example

  cntk.variableNeedsGradient(cntk.inputVariable(cntk.shape([3,4]), "float",fn.false(),
    fn.false(), "feature"))
  => false

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.