Loading TOC...

cntk:value-alias

cntk:value-alias(
   $value as cntk:value,
   $read-only as xs:boolean
) as cntk:value

Summary

Creates a new value which is an alias of this value.

Parameters
$value Input value.
$read-only If the value is read-only.

Example

  let $value := cntk:value(cntk:shape((2,2)), json:to-array(1 to 4), cntk:cpu(), "float")
  return cntk:value-alias($value)
  => cntk:value(Shape([2 x 2]), Device Kind Name(CPU))

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