From 92b5eadb50c0f926f239c16d355526ada2b3372e Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Wed, 2 Mar 2022 15:42:20 +0100 Subject: [PATCH] deprecation arnings --- core/src/ops/cnn/conv/proptest.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/src/ops/cnn/conv/proptest.rs b/core/src/ops/cnn/conv/proptest.rs index 58db8de1b9..5cf04ca91f 100644 --- a/core/src/ops/cnn/conv/proptest.rs +++ b/core/src/ops/cnn/conv/proptest.rs @@ -25,7 +25,6 @@ impl ConvProblem { } fn reference(&self) -> ArrayD { - use num_integer::Integer; setup_test_logger(); assert_eq!(self.data.shape(), &*self.shape_in.shape, "inconsistent shapes in test"); let n = *self.shape_in.n().clone().unwrap_or(&1); @@ -37,14 +36,14 @@ impl ConvProblem { let (shape_out, left_pads): (TVec<_>, TVec<_>) = if self.pad == PaddingSpec::Valid { izip!(self.shape_in.hw_dims(), self.geo_ker(), &self.strides) .map(|(i, k, s)| { - let out = (*i + 1).saturating_sub(*k).div_ceil(&s); + let out = (*i + 1).saturating_sub(*k).divceil(*s); (out, 0) }) .unzip() } else { izip!(self.shape_in.hw_dims(), self.geo_ker(), &self.strides) .map(|(input, k, stride)| { - let out = input.div_ceil(stride); + let out = input.divceil(*stride); let pad = ((out - 1) * stride + k).saturating_sub(*input); (out, pad / 2) })