public class LibTensorReorg extends Object
Modifier and Type | Method and Description |
---|---|
static BasicTensorBlock |
reshape(BasicTensorBlock in,
BasicTensorBlock out,
int[] dims)
CP reshape operation (single input, single output tensor)
|
static List<IndexedTensorBlock> |
reshape(IndexedTensorBlock in,
DataCharacteristics mcIn,
DataCharacteristics mcOut,
boolean rowwise,
boolean outputEmptyBlocks)
MR/SPARK reshape interface - for reshape we cannot view blocks independently, and hence,
there are different CP and MR interfaces.
|
public static BasicTensorBlock reshape(BasicTensorBlock in, BasicTensorBlock out, int[] dims)
in
- input tensorout
- output tensordims
- dimensionspublic static List<IndexedTensorBlock> reshape(IndexedTensorBlock in, DataCharacteristics mcIn, DataCharacteristics mcOut, boolean rowwise, boolean outputEmptyBlocks)
in
- indexed tensor blockmcIn
- input tensor characteristicsmcOut
- output tensor characteristicsrowwise
- if true, reshape by rowoutputEmptyBlocks
- output blocks with nnz=0Copyright © 2020 The Apache Software Foundation. All rights reserved.