Loading TOC...

cntk:value-is-valid

cntk:value-is-valid(
   $value as cntk:value
) as xs:boolean*

Summary

Returns whether this object has been invalidated (by another forward and/or backward pass)

Parameters
$value Input value.

Example

  let $value := cntk:value(cntk:shape((2,2)), json:to-array(1 to 4), cntk:cpu(),
    "float")
  let $new_value := cntk:value-deep-clone($value)
  let $erase := cntk:value-erase($new_value)
  return cntk:value-is-valid($new_value)
  => false

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