# `Snakepit.Error.ShapeMismatch`
[🔗](https://github.com/nshkrdotcom/snakepit/blob/v0.13.0/lib/snakepit/error/shape.ex#L1)

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.

# `t`

```elixir
@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
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
