Snakepit.Error.ShapeMismatch exception (Snakepit v0.8.7)

View Source

Shape mismatch error for tensor operations.

Contains detailed information about the shape mismatch including which dimension differs and what the expected vs actual values were.

Summary

Types

t()

@type t() :: %Snakepit.Error.ShapeMismatch{
  __exception__: true,
  dimension: non_neg_integer() | nil,
  expected: [integer()] | nil,
  expected_dim: integer() | nil,
  got: [integer()] | nil,
  got_dim: integer() | nil,
  message: String.t(),
  operation: String.t() | nil
}