Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 487 Bytes

reshape.rst

File metadata and controls

20 lines (14 loc) · 487 Bytes

reshape

Reshape an operator by giving it new sizes. The total size of the reshaped operator must match the original size.

.. doxygenfunction:: reshape(const T &op, ShapeType &&s)
.. doxygenfunction:: reshape( const T &op, const int32_t (&sizes)[RANK])

Examples

.. literalinclude:: ../../../../test/00_operators/reshape_test.cu
   :language: cpp
   :start-after: example-begin reshape-test-1
   :end-before: example-end reshape-test-1
   :dedent: