BB.Error.Invalid.Inference.CodecMismatch exception (bb_inference v0.1.0)

Copy Markdown View Source

A model's codec doesn't fit the artefact the runtime loaded: it expects inputs or outputs the model doesn't have.

expected is the codec's own account of what it needs; found is a summary of the runtime's BB.Inference.Description.

Summary

Types

t()

@type t() :: %BB.Error.Invalid.Inference.CodecMismatch{
  __exception__: term(),
  bread_crumbs: term(),
  class: term(),
  codec: module(),
  expected: String.t(),
  found: String.t(),
  model: atom(),
  path: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}

Functions

exception(args)

@spec exception(opts :: Keyword.t()) :: %BB.Error.Invalid.Inference.CodecMismatch{
  __exception__: term(),
  bread_crumbs: term(),
  class: term(),
  codec: term(),
  expected: term(),
  found: term(),
  model: term(),
  path: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}

Create an Elixir.BB.Error.Invalid.Inference.CodecMismatch without raising it.

Keys

  • :model
  • :codec
  • :expected
  • :found