Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding public visibility #1219

Merged
merged 2 commits into from
Sep 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/src/ops/quant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ fn info_quantize_linear_i8(q: &QuantizeLinearI8) -> TractResult<Vec<String>> {

#[derive(Clone, Debug, new)]
pub struct DequantizeLinearF32 {
scale: f32,
zero_point: i32,
pub scale: f32,
pub zero_point: i32,
}

impl DequantizeLinearF32 {
Expand Down
2 changes: 1 addition & 1 deletion hir/src/ops/array/flatten.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::internal::*;

#[derive(Debug, Clone, new, Default, Hash)]
pub struct Flatten {
axis: i64,
pub axis: i64,
}

impl Flatten {
Expand Down
4 changes: 2 additions & 2 deletions hir/src/ops/nn/layer_max.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ impl Expansion for LayerHardmax {

#[derive(Debug, Clone, new, Default, Hash)]
pub struct LayerLogSoftmax {
axis: isize,
coerce_to_2d: bool,
pub axis: isize,
pub coerce_to_2d: bool,
}


Expand Down
8 changes: 4 additions & 4 deletions hir/src/ops/nn/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
mod global_pools;
mod layer_max;
mod reduce;
mod softmax;
pub mod global_pools;
pub mod layer_max;
pub mod reduce;
pub mod softmax;

pub use global_pools::*;
pub use layer_max::*;
Expand Down
6 changes: 3 additions & 3 deletions hir/src/ops/nn/reduce.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ impl Reducer {

#[derive(Clone, Debug, new, Hash)]
pub struct Reduce {
axes: Option<Vec<i64>>,
keep_dims: bool,
reducer: Reducer,
pub axes: Option<Vec<i64>>,
pub keep_dims: bool,
pub reducer: Reducer,
}


Expand Down
6 changes: 3 additions & 3 deletions onnx/src/ops/cumsum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ fn cumsum(
}

#[derive(Debug, Clone, Hash)]
struct CumSum {
reverse: bool,
exclusive: bool,
pub struct CumSum {
pub reverse: bool,
pub exclusive: bool,
}

impl Expansion for CumSum {
Expand Down
2 changes: 1 addition & 1 deletion onnx/src/ops/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use tract_hir::internal::*;

mod array;
mod cast;
mod cumsum;
pub mod cumsum;
mod d2s;
mod einsum;
mod fft;
Expand Down
8 changes: 4 additions & 4 deletions onnx/src/ops/nn/reduce.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ pub(crate) fn reduce(

#[derive(Debug, Clone, Hash)]
struct ReduceSum13 {
have_axis_input: bool,
keep_dims: bool,
noop_with_empty_axes: bool,
reducer: tract_hir::ops::nn::Reducer,
pub have_axis_input: bool,
pub keep_dims: bool,
pub noop_with_empty_axes: bool,
pub reducer: tract_hir::ops::nn::Reducer,
}


Expand Down
Loading