Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ONNX: unsupported op_type Mod for op NodeProto #2419

Open
Esword618 opened this issue Aug 16, 2024 · 0 comments
Open

ONNX: unsupported op_type Mod for op NodeProto #2419

Esword618 opened this issue Aug 16, 2024 · 0 comments

Comments

@Esword618
Copy link

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" }] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant