feat(dag): avoid a copy on comment when possible

This commit is contained in:
rudy
2022-07-18 10:06:08 +02:00
committed by rudy-6-4
parent acf6cd26d9
commit af8296e6d2

View File

@@ -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,