Reshape
The reshape operation connects an input tensor to an output tensor with a different logical shape and stride, without changing the underlying element type. The output rank and layout are usually set on the output tensor (or via Reshape_attributes::set_dim / set_stride); the node wires the reshape in the graph.
Reshape modes (ReshapeMode_t)
Mode is ignored on older cuDNN builds that do not expose reshape mode; on cuDNN 9.22+, it is passed to the backend reshape operation.
C++ API
Relevant Reshape_attributes setters:
Python API
pygraph.reshape(input, name="", reshape_mode=cudnn.reshape_mode.VIEW_ONLY)- reshape_mode:
cudnn.reshape_mode.VIEW_ONLYorcudnn.reshape_mode.LOGICAL.
- reshape_mode: