Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

reshape and slice like python

Open yttbgf opened this issue 8 years ago • 4 comments

1.how to reshape a vector into a tensor with shape more than 2D, such as 3D+(rowcolblock*feature) 2.how to slice tensor with more than 1D slice:such as ( row slice+ col slice )

yttbgf avatar May 04 '18 09:05 yttbgf

in v2 version hiddenlayer

yttbgf avatar May 04 '18 09:05 yttbgf

Reference http://www.paddlepaddle.org/docs/develop/api/fluid/en/layers.html

All the layers there, and you can find whether it can match your requirement.

Superjomn avatar May 04 '18 09:05 Superjomn

I use V2 now, I just found seq_reshape and slice_projection.Is there any other layers which can work? or can I use fluid and V2 mixed?

yttbgf avatar May 04 '18 09:05 yttbgf

no you can't

Superjomn avatar May 04 '18 13:05 Superjomn