Skip to content

Commit

Permalink
Add BatchNormAttrs Rust bindings (apache#6678)
Browse files Browse the repository at this point in the history
  • Loading branch information
gussmith23 authored and trevor-m committed Dec 4, 2020
1 parent 56630f8 commit 9a19305
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions rust/tvm/src/ir/relay/attrs/nn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,15 @@ pub struct SoftmaxAttrsNode {
pub base: BaseAttrsNode,
pub axis: i32,
}

#[repr(C)]
#[derive(Object)]
#[ref_name = "BatchNormAttrs"]
#[type_key = "relay.attrs.BatchNormAttrs"]
pub struct BatchNormAttrsNode {
pub base: BaseAttrsNode,
pub axis: i32,
pub epsilon: f64,
pub center: bool,
pub scale: bool,
}

0 comments on commit 9a19305

Please sign in to comment.