additional reverse signatures

Signed-off-by: raver119 <raver119@gmail.com>
master
raver119 2019-11-19 13:54:07 +03:00
parent bbd59a3537
commit ce2ef20f96
1 changed files with 23 additions and 0 deletions

View File

@ -47,6 +47,29 @@ public class Reverse extends DynamicCustomOp {
this.inPlace = true;
}
/**
* This constructor allows to specify axis for Reverse operation
* @param x
* @param axis
*/
public Reverse(INDArray x, int... axis){
super(new INDArray[]{x}, new INDArray[0]);
this.inPlace = false;
addIArgument(axis);
}
/**
* This constructor allows to specify axis for Reverse operation
* @param x
* @param axis
*/
public Reverse(INDArray x, INDArray z, int... axis){
super(new INDArray[]{x}, new INDArray[] {z});
this.inPlace = false;
addIArgument(axis);
}
/**
* Reverses whole array for compatibility with OldReverse.
*