as_block: As Block

Description Usage Arguments


Create a new block Function instance which just encapsulates the specified composite Function to create a new Function that appears to be a primitive. All the arguments of the composite being encapsulated must be Placeholder variables. The purpose of block Functions is to enable creation of hierarchical Function graphs where details of implementing certain building block operations can be encapsulated away such that the actual structure of the block’s implementation is not inlined into the parent graph where the block is used, and instead the block just appears as an opaque primitive. Users still have the ability to peek at the underlying Function graph that implements the actual block Function.


as_block(composite, block_arguments_map, block_op_name,
  block_instance_name = "")



joeddav/CNTK-R documentation built on May 6, 2019, 7:28 a.m.