Loading TOC...

cntk:variable-needs-gradient

cntk:variable-needs-gradient(
   $variable as cntk:variable
) as xs:boolean

Summary

Returns if the variable needs gradient.

Parameters
$variable The input variable.

Example

  cntk:variable-needs-gradient(cntk:input-variable(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.