mirror of
https://github.com/neodyland/sbv2-api.git
synced 2026-01-06 14:32:57 +00:00
fix: level
This commit is contained in:
@@ -4,7 +4,7 @@ use ort::{GraphOptimizationLevel, Session};
|
|||||||
|
|
||||||
pub fn load_model() -> Result<Session> {
|
pub fn load_model() -> Result<Session> {
|
||||||
let session = Session::builder()?
|
let session = Session::builder()?
|
||||||
.with_optimization_level(GraphOptimizationLevel::Level1)?
|
.with_optimization_level(GraphOptimizationLevel::Level3)?
|
||||||
.with_intra_threads(1)?
|
.with_intra_threads(1)?
|
||||||
.commit_from_file("models/debert.onnx")?;
|
.commit_from_file("models/debert.onnx")?;
|
||||||
Ok(session)
|
Ok(session)
|
||||||
|
|||||||
Reference in New Issue
Block a user