Skip to content

Commit

Permalink
fix: reduce verbosity of common operations (#715)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-camuto authored Feb 15, 2024
1 parent 1b637a7 commit 0291eb2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/graph/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ impl GraphCircuit {
let shapes = self.model().graph.input_shapes()?;
let scales = self.model().graph.get_input_scales();
let input_types = self.model().graph.get_input_types()?;
info!("input scales: {:?}", scales);
debug!("input scales: {:?}", scales);

match &data.input_data {
DataSource::File(file_data) => {
Expand All @@ -845,7 +845,7 @@ impl GraphCircuit {
let shapes = self.model().graph.input_shapes()?;
let scales = self.model().graph.get_input_scales();
let input_types = self.model().graph.get_input_types()?;
info!("input scales: {:?}", scales);
debug!("input scales: {:?}", scales);

self.process_data_source(&data.input_data, shapes, scales, input_types)
.await
Expand Down Expand Up @@ -1045,7 +1045,7 @@ impl GraphCircuit {
"extended k is too large to accommodate the quotient polynomial with logrows {}",
min_logrows
);
error!("{}", err_string);
debug!("{}", err_string);
return Err(err_string.into());
}

Expand All @@ -1065,7 +1065,7 @@ impl GraphCircuit {
"extended k is too large to accommodate the quotient polynomial with logrows {}",
max_logrows
);
error!("{}", err_string);
debug!("{}", err_string);
return Err(err_string.into());
}

Expand Down Expand Up @@ -1131,7 +1131,7 @@ impl GraphCircuit {

settings_mut.run_args.logrows = std::cmp::min(max_logrows, settings_mut.run_args.logrows);

info!(
debug!(
"setting lookup_range to: {:?}, setting logrows to: {}",
self.settings().run_args.lookup_range,
self.settings().run_args.logrows
Expand Down
6 changes: 3 additions & 3 deletions src/graph/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ impl Model {
) -> Result<GraphSettings, Box<dyn Error>> {
let instance_shapes = self.instance_shapes()?;
#[cfg(not(target_arch = "wasm32"))]
info!(
debug!(
"{} {} {}",
"model has".blue(),
instance_shapes.len().to_string().blue(),
Expand Down Expand Up @@ -1132,7 +1132,7 @@ impl Model {

// Then number of columns in the circuits
#[cfg(not(target_arch = "wasm32"))]
info!(
debug!(
"{} {} {} (coord={}, constants={})",
"model uses".blue(),
num_rows.to_string().blue(),
Expand Down Expand Up @@ -1341,7 +1341,7 @@ impl Model {
run_args: &RunArgs,
inputs: &[ValTensor<Fp>],
) -> Result<DummyPassRes, Box<dyn Error>> {
info!("calculating num of constraints using dummy model layout...");
debug!("calculating num of constraints using dummy model layout...");

let start_time = instant::Instant::now();

Expand Down

0 comments on commit 0291eb2

Please sign in to comment.