public class IntersectionShapingStrategy extends java.lang.Object implements ShapingStrategy
Example:
Shape result = shapeLeftRight(Shape.of(POS_A, POS_B), Shape.of(POS_B, POS_C)); result.equals(Shape.of(POS_B)); // would be true
Modifier and Type | Method and Description |
---|---|
static IntersectionShapingStrategy |
get() |
java.lang.Class<ShapingStrategy> |
getMarkerInterface() |
<C> Shape |
shapeLeftRight(Tensor<?> left,
Tensor<?> right)
Resulting tensor shape of given two in following formula: FIRST_TENSOR_SHAPE on SECOND_TENSOR_SHAPE
|
public static IntersectionShapingStrategy get()
public <C> Shape shapeLeftRight(Tensor<?> left, Tensor<?> right)
ShapingStrategy
shapeLeftRight
in interface ShapingStrategy
left
- tensorright
- tensorpublic java.lang.Class<ShapingStrategy> getMarkerInterface()
getMarkerInterface
in interface Option<ManipulationOption>