Skip to content

Commit

Permalink
measure ix_opt_buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
shu5620 committed Oct 1, 2023
1 parent 0ab8efc commit 45d1a7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions border-async-trainer/src/async_trainer/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,10 @@ where
}

fn get_buffer_for_opt(&self) -> Arc<Mutex<R>> {
let time_tmp = SystemTime::now();
let ix_buffer = self.splitted_buffers.ix_opt_buffer();
println!("time ix_opt_buffer: {}", time_tmp.elapsed().unwrap().as_secs_f32());

self.splitted_buffers.splitted_buffers[ix_buffer].clone()
}

Expand Down

0 comments on commit 45d1a7a

Please sign in to comment.