public class ExactShapesOrOneZeroStrategy extends java.lang.Object implements ShapingStrategy
ShapingStrategy that checks if for two given Tensor objects shapes are exactly the
same (type of the coordinates, number of dimensions and coordinates instances). Otherwise it throws and
IllegalArgumentException.| Constructor and Description |
|---|
ExactShapesOrOneZeroStrategy()
Deprecated.
use the factory methods
get() |
| Modifier and Type | Method and Description |
|---|---|
static ExactShapesOrOneZeroStrategy |
get() |
java.lang.Class<ShapingStrategy> |
getMarkerInterface() |
<C> Shape |
shapeLeftRight(Tensor<?> first,
Tensor<?> second)
Resulting tensor shape of given two in following formula: FIRST_TENSOR_SHAPE on SECOND_TENSOR_SHAPE
|
@Deprecated public ExactShapesOrOneZeroStrategy()
get()public static ExactShapesOrOneZeroStrategy get()
public <C> Shape shapeLeftRight(Tensor<?> first, Tensor<?> second)
ShapingStrategyshapeLeftRight in interface ShapingStrategyfirst - tensorsecond - tensorpublic java.lang.Class<ShapingStrategy> getMarkerInterface()
getMarkerInterface in interface Option<ManipulationOption>