pub enum RuntimeError {
Show 15 variants
TokenizerLoadError(String),
MissingSpecialToken {
token: &'static str,
},
InvalidOptionMarkerEncoding {
expected: u32,
actual: Vec<u32>,
},
TokenizerEncodeError(String),
PromptExceedsMaxLength {
fixed_len: usize,
max_len: usize,
},
OptionMarkerCountMismatch {
detected: usize,
expected: usize,
},
InvalidQuestion(String),
Ort(Error),
OrtConfig(String),
ModelContractViolation(String),
InvalidTensorData(String),
ExecutionProviderError(String),
CacheMiss(u64),
CacheDimensionMismatch {
expected: usize,
actual: usize,
},
Core(CoreError),
}Expand description
ランタイム推論エンジンおよびトークナイザーで発生するエラー型。
Variants§
TokenizerLoadError(String)
トークナイザー定義ファイルの読み込み失敗。
MissingSpecialToken
必須特殊トークンが未定義。
InvalidOptionMarkerEncoding
オプションマーカートークン [OP] が単一トークンとして分割されていない。
TokenizerEncodeError(String)
トークナイズ処理時の内部エラー。
PromptExceedsMaxLength
プロンプトの固定部が最大許容系列長を超過している。
OptionMarkerCountMismatch
検出された [OP] マーカー数と質問候補数の不一致。
InvalidQuestion(String)
不正な質問スキーマまたは評価基準。
Ort(Error)
ONNX Runtime 内部エラー。
OrtConfig(String)
ONNX Runtime セッション構築設定エラー。
ModelContractViolation(String)
モデルの入出力契約違反(テンソル名や次元数の不整合)。
InvalidTensorData(String)
テンソルデータが不正(系列長超過インデックスや NaN/Inf など)。
ExecutionProviderError(String)
Execution Provider の初期化エラー。
CacheMiss(u64)
キャッシュ未登録または期限切れ。
CacheDimensionMismatch
キャッシュと入力テンソルの次元不整合。
Core(CoreError)
コア数理・型スキーマクレート由来のエラー。
Trait Implementations§
Source§impl Debug for RuntimeError
impl Debug for RuntimeError
Source§impl Display for RuntimeError
impl Display for RuntimeError
Source§impl Error for RuntimeError
impl Error for RuntimeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<CoreError> for RuntimeError
impl From<CoreError> for RuntimeError
Source§impl From<Error> for RuntimeError
impl From<Error> for RuntimeError
Source§impl From<RuntimeError> for DagError
impl From<RuntimeError> for DagError
Source§fn from(source: RuntimeError) -> Self
fn from(source: RuntimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeError
impl !UnwindSafe for RuntimeError
impl Freeze for RuntimeError
impl Send for RuntimeError
impl Sync for RuntimeError
impl Unpin for RuntimeError
impl UnsafeUnpin for RuntimeError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more