Home
last modified time | relevance | path

Searched refs:step_size (Results 1 – 25 of 55) sorted by relevance

123

/third_party/boost/boost/range/
Dirange.hpp133 integer_iterator_with_step(value_type first, difference_type step, value_type step_size) in integer_iterator_with_step() argument
136 , m_step_size(step_size) in integer_iterator_with_step()
216 irange(Integer first, Integer last, StepSize step_size) in irange() argument
218 BOOST_ASSERT( step_size != 0 ); in irange()
219 BOOST_ASSERT( (step_size > 0) ? (last >= first) : (last <= first) ); in irange()
223 … const std::ptrdiff_t sz = static_cast<std::ptrdiff_t>(step_size >= 0 ? step_size : -step_size); in irange()
224 const Integer l = step_size >= 0 ? last : first; in irange()
225 const Integer f = step_size >= 0 ? first : last; in irange()
230 iterator_t(first, 0, step_size), in irange()
231 iterator_t(first, num_steps, step_size)); in irange()
/third_party/boost/libs/range/test/
Dirange.cpp118 void test_irange(int first, int last, int step_size) in test_irange() argument
120 BOOST_ASSERT( step_size != 0 ); in test_irange()
121 test_irange_impl<signed char>(first, last, step_size); in test_irange()
122 test_irange_impl<unsigned char>(first, last, step_size); in test_irange()
123 test_irange_impl<signed short>(first, last, step_size); in test_irange()
124 test_irange_impl<unsigned short>(first, last, step_size); in test_irange()
125 test_irange_impl<signed int>(first, last, step_size); in test_irange()
126 test_irange_impl<unsigned int>(first, last, step_size); in test_irange()
127 test_irange_impl<signed long>(first, last, step_size); in test_irange()
128 test_irange_impl<unsigned long>(first, last, step_size); in test_irange()
/third_party/mindspore/mindspore/dataset/callback/
Dds_callback.py45 def __init__(self, step_size=1): argument
46 self.step_size = step_size
95 c_cb = PyDSCallback(self.step_size)
144 def __init__(self, step_size=1): argument
146 self.step_size = step_size
216 if ds_run_context.cur_step_num > self.step_size:
232 c_cb = PyDSCallback(self.step_size)
Dvalidators.py30 [step_size], _ = parse_user_args(method, *args, **kwargs)
31 check_pos_int32(step_size, "step_size")
/third_party/mindspore/mindspore/train/callback/
D_time_monitor.py57 step_size = self.data_size
62 step_size = cb_params.batch_num
64 if not isinstance(step_size, int) or step_size < 1:
67 step_seconds = epoch_seconds / step_size
/third_party/mindspore/tests/ut/python/dataset/
Dtest_callbacks.py33 def __init__(self, step_size=1, events=None, cb_id=0): argument
34 super().__init__(step_size)
82 def generate_expected(epoch_num, step_num, step_size=1, map_num=1, repeat=1): argument
95 if s % step_size == 0:
102 def build_test_case_1cb(epochs, steps, step_size=1, repeat=1): argument
108 my_cb = MyDSCallback(step_size=step_size, events=events)
123 expected_events = generate_expected(epochs, steps, step_size, 1, repeat)
221 def __init__(self, events, step_size=1): argument
222 super().__init__(step_size)
380 build_test_case_1cb(epochs=2, steps=2, step_size=1, repeat=2)
[all …]
/third_party/boost/boost/math/interpolators/
Dcubic_b_spline.hpp39 cubic_b_spline(const BidiIterator f, BidiIterator end_p, Real left_endpoint, Real step_size,
42 cubic_b_spline(const Real* const f, size_t length, Real left_endpoint, Real step_size,
58 …pline<Real>::cubic_b_spline(const Real* const f, size_t length, Real left_endpoint, Real step_size, in cubic_b_spline() argument
59 …_shared<detail::cubic_b_spline_imp<Real>>(f, f + length, left_endpoint, step_size, left_endpoint_d… in cubic_b_spline()
65 …pline<Real>::cubic_b_spline(BidiIterator f, BidiIterator end_p, Real left_endpoint, Real step_size, in cubic_b_spline() argument
66 …:make_shared<detail::cubic_b_spline_imp<Real>>(f, end_p, left_endpoint, step_size, left_endpoint_d… in cubic_b_spline()
Dcardinal_cubic_b_spline.hpp36 …rdinal_cubic_b_spline(const BidiIterator f, BidiIterator end_p, Real left_endpoint, Real step_size,
39 cardinal_cubic_b_spline(const Real* const f, size_t length, Real left_endpoint, Real step_size,
55 …l>::cardinal_cubic_b_spline(const Real* const f, size_t length, Real left_endpoint, Real step_size, in cardinal_cubic_b_spline() argument
56 …etail::cardinal_cubic_b_spline_imp<Real>>(f, f + length, left_endpoint, step_size, left_endpoint_d… in cardinal_cubic_b_spline()
62 …l>::cardinal_cubic_b_spline(BidiIterator f, BidiIterator end_p, Real left_endpoint, Real step_size, in cardinal_cubic_b_spline() argument
63 …red<detail::cardinal_cubic_b_spline_imp<Real>>(f, end_p, left_endpoint, step_size, left_endpoint_d… in cardinal_cubic_b_spline()
/third_party/gstreamer/gstplugins_bad/gst/debugutils/
Dgstchopmydata.c157 chopmydata->step_size = DEFAULT_STEP_SIZE; in gst_chop_my_data_init()
179 chopmydata->step_size = g_value_get_int (value); in gst_chop_my_data_set_property()
204 g_value_set_int (value, chopmydata->step_size); in gst_chop_my_data_get_property()
263 begin = (chopmydata->min_size + chopmydata->step_size - 1) / in get_next_size()
264 chopmydata->step_size; in get_next_size()
265 end = (chopmydata->max_size + chopmydata->step_size) / chopmydata->step_size; in get_next_size()
268 chopmydata->next_size = begin * chopmydata->step_size; in get_next_size()
273 g_rand_int_range (chopmydata->rand, begin, end) * chopmydata->step_size; in get_next_size()
/third_party/mindspore/include/api/callback/
Dlr_scheduler.h36 int StepLRLambda(float *lr, int epoch, void *step_size);
38 StepLRLambda(int step, float g) : step_size(step), gamma(g) {} in StepLRLambda()
40 int step_size; // period of LR decay member
/third_party/mindspore/mindspore/lite/include/train/
Dlr_scheduler.h37 int StepLRLambda(float *lr, int epoch, void *step_size);
39 StepLRLambda(int step, float g) : step_size(step), gamma(g) {} in StepLRLambda()
41 int step_size; // period of LR decay member
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/callback/
Dds_callback.h34 explicit DSCallback(int32_t step_size = 1) : step_size_(step_size) {} in step_size_() argument
95 int32_t step_size() const { return step_size_; } in step_size() function
Dcallback_manager.cc37 …CHECK_FAIL_RETURN_UNEXPECTED(cb->step_size() > 0, "callback step_size needs to be greater than 0."… in Init()
89 …d]->IsNStepBeginNeeded() && (cb_param.cur_epoch_step_num_ - 1) % callbacks_[ind]->step_size() == 0) in StepBegin()
150 …ind]->IsNStepEndNeeded() && (cb_param.cur_epoch_step_num_ - 1) % callbacks_[ind]->step_size() == 0) in StepEnd()
Dpy_ds_callback.h36 explicit PyDSCallback(int32_t step_size = 1)
37 : DSCallback(step_size), in DSCallback() argument
/third_party/boost/boost/math/interpolators/detail/
Dcubic_b_spline_detail.hpp27 cubic_b_spline_imp(BidiIterator f, BidiIterator end_p, Real left_endpoint, Real step_size,
106 …p<Real>::cubic_b_spline_imp(BidiIterator f, BidiIterator end_p, Real left_endpoint, Real step_size, in cubic_b_spline_imp() argument
129 if (left_endpoint + length*step_size >= (std::numeric_limits<Real>::max)()) in cubic_b_spline_imp()
133 if (step_size <= 0) in cubic_b_spline_imp()
139 m_h_inv = 1/step_size; in cubic_b_spline_imp()
206 rhs[0] = -2*step_size*a1; in cubic_b_spline_imp()
207 rhs[rhs.size() - 1] = -2*step_size*b1; in cubic_b_spline_imp()
Dcardinal_cubic_b_spline_detail.hpp27 …cardinal_cubic_b_spline_imp(BidiIterator f, BidiIterator end_p, Real left_endpoint, Real step_size,
106 …cardinal_cubic_b_spline_imp(BidiIterator f, BidiIterator end_p, Real left_endpoint, Real step_size, in cardinal_cubic_b_spline_imp() argument
129 if (left_endpoint + length*step_size >= (std::numeric_limits<Real>::max)()) in cardinal_cubic_b_spline_imp()
133 if (step_size <= 0) in cardinal_cubic_b_spline_imp()
139 m_h_inv = 1/step_size; in cardinal_cubic_b_spline_imp()
206 rhs[0] = -2*step_size*a1; in cardinal_cubic_b_spline_imp()
207 rhs[rhs.size() - 1] = -2*step_size*b1; in cardinal_cubic_b_spline_imp()
/third_party/boost/libs/multiprecision/example/
Dgauss_laguerre_quadrature.cpp209 T step_size = 0.01F; in calculate() local
210 T step = step_size; in calculate()
230 step += step_size; in calculate()
284 step_size = first_laguerre_root / 2; in calculate()
285 step = step_size; in calculate()
297 step += step_size; in calculate()
316 step - step_size, in calculate()
356 step_size = distance_between_previous_roots / 3; in calculate()
/third_party/boost/libs/math/tools/
Dlambert_w_low_reference_values.cpp184 RealType step_size("0.01"); in main() local
198 z += step_size; in main()
213 z += step_size; in main()
/third_party/mindspore/tests/st/quantization/mobilenetv2_quant/
Dtest_mobilenetv2_quant.py83 step_size = dataset.get_dataset_size()
92 lr = Tensor(get_lr(global_step=config.start_epoch * step_size,
98 steps_per_epoch=step_size))
Dtest_mobilenetv2_quant_gpu.py81 step_size = dataset.get_dataset_size()
90 lr = Tensor(get_lr(global_step=config.start_epoch * step_size,
96 steps_per_epoch=step_size))
/third_party/mindspore/mindspore/lite/src/cxx_api/callback/
Dlr_scheduler.cc32 if (step_lr_data->step_size <= 0) { in StepLRLambda()
36 if (((epoch + 1) % step_lr_data->step_size) == 0) { in StepLRLambda()
/third_party/mindspore/tests/st/networks/models/resnet50/
Dtest_resnet50_imagenet.py163 step_size = dataset.get_dataset_size()
165 dataset.__loop_size__ = step_size * eval_interval
177 steps_per_epoch=step_size, lr_decay_mode=config.lr_decay_mode))
209 loss_cb = LossGet(1, step_size)
226 … epoch_idx, device_id, loss, acc, time_cost, eval_cost, time_cost * step_size + eval_cost))
257 step_size = dataset.get_dataset_size()
289 loss_cb = LossGet(1, step_size)
306 … epoch_idx, device_id, loss, acc, time_cost, eval_cost, time_cost * step_size + eval_cost))
/third_party/libsnd/src/G72x/
Dg721.c102 y = step_size (state_ptr) ; /* quantizer step size */ in g721_encoder()
142 y = step_size (state_ptr) ; /* dynamic quantizer step size */ in g721_decoder()
Dg723_24.c91 y = step_size (state_ptr) ; /* quantizer step size */ in g723_24_encoder()
128 y = step_size (state_ptr) ; /* adaptive quantizer step size */ in g723_24_decoder()
Dg723_16.c105 y = step_size (state_ptr) ; /* quantizer step size */ in g723_16_encoder()
150 y = step_size (state_ptr) ; /* adaptive quantizer step size */ in g723_16_decoder()

123