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 Morris committed Dec 2, 2020
1 parent e268e99 commit 3045b74
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 3045b74

Please sign in to comment.