# `Tinkex.API.Weights`
[🔗](https://github.com/North-Shore-AI/tinkex/blob/v0.4.0/lib/tinkex/api/weights.ex#L1)

Weight management endpoints.

Uses :training pool for weight operations.

# `load_weights`

```elixir
@spec load_weights(
  map(),
  keyword()
) :: {:ok, map()} | {:error, Tinkex.Error.t()}
```

Load model weights.

# `load_weights_typed`

```elixir
@spec load_weights_typed(
  map(),
  keyword()
) :: {:ok, Tinkex.Types.LoadWeightsResponse.t()} | {:error, Tinkex.Error.t()}
```

Load model weights with a typed response.

# `save_weights`

```elixir
@spec save_weights(
  map(),
  keyword()
) :: {:ok, map()} | {:error, Tinkex.Error.t()}
```

Save model weights.

# `save_weights_for_sampler`

```elixir
@spec save_weights_for_sampler(
  map(),
  keyword()
) :: {:ok, map()} | {:error, Tinkex.Error.t()}
```

Save weights for sampler.

# `save_weights_for_sampler_typed`

```elixir
@spec save_weights_for_sampler_typed(
  map(),
  keyword()
) ::
  {:ok, Tinkex.Types.SaveWeightsForSamplerResponse.t()}
  | {:error, Tinkex.Error.t()}
```

Save weights for sampler with typed response.

# `save_weights_typed`

```elixir
@spec save_weights_typed(
  map(),
  keyword()
) :: {:ok, Tinkex.Types.SaveWeightsResponse.t()} | {:error, Tinkex.Error.t()}
```

Save model weights with a typed response.

---

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