Skip to content

Commit 52e8374

Browse files
committed
fix: ci
1 parent c27b0eb commit 52e8374

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

crates/burn-import/src/burn/node/base.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,10 @@ pub(crate) mod tests {
401401
),
402402
));
403403

404-
graph.register_input_output(vec!["tensor1".to_string(), "tensor2".to_string()], vec![
405-
"tensor4".to_string(),
406-
]);
404+
graph.register_input_output(
405+
vec!["tensor1".to_string(), "tensor2".to_string()],
406+
vec!["tensor4".to_string()],
407+
);
407408

408409
let expected = quote! {
409410
use burn::{
@@ -486,9 +487,10 @@ pub(crate) mod tests {
486487
TensorType::new_float("output", 4),
487488
));
488489

489-
graph.register_input_output(vec!["tensor1".to_string(), "tensor2".to_string()], vec![
490-
"output".to_string(),
491-
]);
490+
graph.register_input_output(
491+
vec!["tensor1".to_string(), "tensor2".to_string()],
492+
vec!["output".to_string()],
493+
);
492494

493495
let expected = quote! {
494496
use burn::{

crates/burn-import/src/burn/node/depth_to_space.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ mod tests {
127127

128128
graph.register(DepthToSpaceNode::new(
129129
TensorType::new_float("input", 4),
130-
TensorType::new_float("output", 5),
130+
TensorType::new_float("output", 4),
131131
DepthToSpaceConfig::new(DepthToSpaceMode::CRD, 2),
132132
));
133133

crates/onnx-ir/src/node/depth_to_space.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub fn depth_to_space_update_outputs(node: &mut Node) {
4444
node.outputs[0].ty = ArgType::Tensor(TensorType {
4545
elem_type: tensor.elem_type.clone(),
4646
rank: tensor.rank,
47-
static_shape: static_shape,
47+
static_shape,
4848
});
4949
}
5050

@@ -104,9 +104,9 @@ pub fn depth_to_space_config(node: &Node) -> DepthToSpaceConfig {
104104
#[cfg(test)]
105105
mod tests {
106106
use super::*;
107+
use crate::ElementType;
107108
use crate::ir::NodeType;
108109
use crate::node::test_utils::NodeBuilder;
109-
use crate::ElementType;
110110

111111
/// Helper function to create test nodes with different repeat values
112112
fn create_test_node(

crates/onnx-ir/src/node/space_to_depth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub fn space_to_depth_update_outputs(node: &mut Node) {
4444
node.outputs[0].ty = ArgType::Tensor(TensorType {
4545
elem_type: tensor.elem_type.clone(),
4646
rank: tensor.rank,
47-
static_shape: static_shape,
47+
static_shape,
4848
});
4949
}
5050

0 commit comments

Comments
 (0)