Loading TOC...

cntk:input-variable

cntk:input-variable(
   $shape as cntk:shape,
   $data-type as xs:string,
   [$is-sparse as xs:boolean],
   [$needs-gradient as xs:boolean],
   [$name as xs:string],
   [$dynamic-axes as cntk:axis*]
) as cntk:variable

Summary

Constructs an input variable.

Parameters
$shape The shape of the input variable.
$data-type The data-type of the input variable.
$is-sparse Whether the input variable is sparse. Only accepted value is false. If passed a true, an exception is thrown. This is reserved for future implementation.
$needs-gradient Whether the input variable needs gradient. Default is false.
$name The name of the input variable.
$dynamic-axes The dynamic axes of the input variable. Default is the default-batch-axis as batch axis and the default-dynamic-axis as sequence axis.

Example

  cntk:input-variable(cntk:shape((3,4)), "float",fn:false(), fn:false(),
    "feature")
  => cntk:variable(Input(Name(feature), Shape([3 x 4]), Dynamic Axes([Sequence
  Axis(Default Dynamic Axis), Batch Axis(Default Batch Axis)])))

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