BalancedTernaryEngine.Validation (balanced_ternary_engine v0.1.0-dev)

Copy Markdown

Reusable validation helpers for tensors, configs, and model files.

Summary

Functions

validate_config(config)

@spec validate_config(term()) :: {:ok, map()} | {:error, term()}

validate_model_file(path)

@spec validate_model_file(String.t()) :: :ok | {:error, term()}

validate_tensor(tensor)

@spec validate_tensor(term()) :: {:ok, Nx.Tensor.t()} | {:error, term()}