Developer Guide

Contents

Reshape Forward Layer

The forward reshape layer generates a tensor from input argument
X
of size
n
1
x
n
2
x ... x
n
p
with modified size of dimensions
m
1
x
m
2
x ... x
m
q
without modifying data and its order.

Problem Statement

Given the dimension sizes of the output tensor
m
1
x
m
2
x ... x
m
q
, such that
There are two reserved values of
m
i
:
  • 0 means
    m
    i
    =
    n
    i
    , valid only when
    i
    p
  • undefinedDimensionSize
    means
    m
    i
    is calculated to make the product of all m
    i
    equal to the product of all
    n
    i
    , valid only if used once. Corresponding
    m
    i
    calculated as follows:
The
q
-dimensional result tensor
Y
of size
m
1
x ... x
m
q
contains the same data from
X
in unmodified order.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804