mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 20:25:34 -05:00
feat(dag): avoid a copy on comment when possible
This commit is contained in:
@@ -70,11 +70,11 @@ impl OperationDag {
|
||||
complexity: LevelledComplexity,
|
||||
manp: f64,
|
||||
out_shape: impl Into<Shape>,
|
||||
comment: &str,
|
||||
comment: impl Into<String>,
|
||||
) -> OperatorIndex {
|
||||
let inputs = inputs.into();
|
||||
let out_shape = out_shape.into();
|
||||
let comment = comment.to_string();
|
||||
let comment = comment.into();
|
||||
let op = Operator::LevelledOp {
|
||||
inputs,
|
||||
complexity,
|
||||
|
||||
Reference in New Issue
Block a user