Loading TOC...

cntk:value-erase

cntk:value-erase(
   $value as cntk:value
) as empty sequence

Summary

Erase the data of the value.

Parameters
$value The value whose data will be erased.

Example

  let $variable := cntk:input-variable(cntk:shape((2,2)), "float", fn:false(),
    fn:false(), "feature")
  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 (xdmp:quote($new_value))
  => cntk:value(Invalid CNTK Value)

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