candle
candle copied to clipboard
ONNX: unsupported op_type Mod for op NodeProto
I encountered the following problem. There is no problem with using python's transformers:
Error: WithBacktrace { inner: Msg("unsupported op_type Mod for op NodeProto { input: [\"/embeddings/patch_embeddings/Gather_1_output_0\", \"/encoder/layers.0/blocks.0/Constant_2_output_0\"], output:
[\"/encoder/layers.0/blocks.0/Mod_output_0\"], name: \"/encoder/layers.0/blocks.0/Mod\", op_type: \"Mod\", domain: \"\", attribute: [AttributeProto { name: \"fmod\", ref_attr_name: \"\", doc_string
: \"\", r#type: Int, f: 0.0, i: 0, s: [], t: None, g: None, sparse_tensor: None, tp: None, floats: [], ints: [], strings: [], tensors: [], graphs: [], sparse_tensors: [], type_protos: [] }], doc_str
ing: \"\" }"), backtrace: Backtrace [{ fn: "std::backtrace_rs::backtrace::dbghelp64::trace", file: "/rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library\std\src\..\..\backtrace\src\backtrace\dbgh
elp64.rs", line: 91 }, { fn: "std::backtrace_rs::backtrace::trace_unsynchronized", file: "/rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library\std\src\..\..\backtrace\src\backtrace\mod.rs", line:
66 }, { fn: "std::backtrace::Backtrace::create", file: "/rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library\std\src\backtrace.rs", line: 331 }, { fn: "std::backtrace::Backtrace::capture", file:
"/rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library\std\src\backtrace.rs", line: 296 }, { fn: "enum2$<candle_core::error::Error>::bt", file: "C:\Users\jyj34\.cargo\registry\src\mirrors.ustc.ed
u.cn-12df342d903acd47\candle-core-0.6.0\src\error.rs", line: 231 }, { fn: "candle_onnx::eval::simple_eval_", file: "C:\Users\jyj34\.cargo\registry\src\mirrors.ustc.edu.cn-12df342d903acd47\candle-onn
x-0.6.0\src\eval.rs", line: 1301 }, { fn: "candle_onnx::eval::simple_eval", file: "C:\Users\jyj34\.cargo\registry\src\mirrors.ustc.edu.cn-12df342d903acd47\candle-onnx-0.6.0\src\eval.rs", line: 233 }
, { fn: "transformer_study::main", file: ".\src\main.rs", line: 73 }, { fn: "core::ops::function::FnOnce::call_once<enum2$<core::result::Result<tuple$<>,alloc::boxed::Box<dyn$<core::error::Error,cor
e::marker::Send,core::marker::Sync>,alloc::alloc::Global> > > (*)(),tuple$<> >", file: "/rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23\library\core\src\ops\function.rs", line: 250 }, { fn: "std::sy
s_common::backtrace::__rust_begin_short_backtrace<enum2$<core::result::Result<tuple$<>,alloc::boxed::Box<dyn$<core::error::Error,core::marker::Send,core::marker::Sync>,alloc::alloc::Global> > > (*)(
),enum2$<core::result::Result<tuple$<>,alloc::boxed", file: "/rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23\library\std\src\sys_common\backtrace.rs", line: 155 }, { fn: "std::rt::lang_start::closur
e$0<enum2$<core::result::Result<tuple$<>,alloc::boxed::Box<dyn$<core::error::Error,core::marker::Send,core::marker::Sync>,alloc::alloc::Global> > > >", file: "/rustc/3f5fd8dd41153bc5fdca9427e9e05be2
c767ba23\library\std\src\rt.rs", line: 159 }, { fn: "std::rt::lang_start_internal", file: "/rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library\std\src\rt.rs", line: 141 }, { fn: "std::rt::lang_s
tart<enum2$<core::result::Result<tuple$<>,alloc::boxed::Box<dyn$<core::error::Error,core::marker::Send,core::marker::Sync>,alloc::alloc::Global> > > >", file: "/rustc/3f5fd8dd41153bc5fdca9427e9e05be
2c767ba23\library\std\src\rt.rs", line: 158 }, { fn: "main" }, { fn: "invoke_main", file: "D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl", line: 78 }, { fn: "__scrt_common_main_seh", file: "D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl", line: 288 }, { fn: "BaseThreadInitThunk" }, { fn: "RtlUserThreadStart" }] }