einx.errors.AxisSizeError#
- exception einx.errors.AxisSizeError(invocation, message, pos=None, constraints=None)#
This error occurs if the size of all axes in an einx expression cannot be determined under the given input tensor shapes and additional constraints.
Example
>>> x = np.random.rand(3, 4) >>> y = np.random.rand(4, 4) >>> einx.add("a b, a c -> a b c", x, y) einx.errors.AxisSizeError: Failed to determine the size of all axes in the expression under the given constraints. Expression: "a b, a c -> a b c"
The operation was called with the following arguments: - Positional argument #1: Tensor with shape (3, 4) - Positional argument #2: Tensor with shape (4, 4)