Home
last modified time | relevance | path

Searched refs:slice_mode (Results 1 – 23 of 23) sorted by relevance

/third_party/mindspore/tests/st/auto_parallel/
Dmultifieldembeddinglookup_parallel.py179 param_init, target, slice_mode, sparse, operator, indices, field_ids): argument
183 param_init=param_init, target=target, slice_mode=slice_mode,
188 if slice_mode == "table_column_slice":
190 elif slice_mode == "table_row_slice":
192 elif slice_mode == "batch_slice":
203 param_init, target, slice_mode, sparse, operator, indices, field_ids): argument
209 self.slice_mode = slice_mode
269slice_mode=self.slice_mode, sparse=self.sparse, operator=self.operator,
277slice_mode=self.slice_mode, sparse=self.sparse, operator=self.operator,
285slice_mode=self.slice_mode, sparse=self.sparse, operator=self.operator,
[all …]
/third_party/mindspore/tests/ut/python/parallel/
Dtest_multi_field_embedding.py59 …def __init__(self, shape, field_size=10, slice_mode=nn.EmbeddingLookup.BATCH_SLICE, target="Device… argument
63 … field_size=field_size, slice_mode=slice_mode, operator=operator)
95 …net = NetWithLoss(Net(shape, field_size=9, slice_mode=nn.EmbeddingLookup.TABLE_ROW_SLICE, target='…
102 …net = NetWithLoss(Net(shape, field_size=10, slice_mode=nn.EmbeddingLookup.TABLE_COLUMN_SLICE, targ…
116 …net = NetWithLoss(Net(shape, target='DEVICE', slice_mode=nn.EmbeddingLookup.TABLE_COLUMN_SLICE, op…
123 …net = NetWithLoss(Net(shape, target='DEVICE', slice_mode=nn.EmbeddingLookup.TABLE_ROW_SLICE, opera…
137 …net = NetWithLoss(Net(shape, target='DEVICE', slice_mode=nn.EmbeddingLookup.TABLE_COLUMN_SLICE, op…
144 …net = NetWithLoss(Net(shape, target='DEVICE', slice_mode=nn.EmbeddingLookup.TABLE_ROW_SLICE, opera…
/third_party/boost/boost/histogram/algorithm/
Dreduce.hpp125 enum class slice_mode { shrink, crop }; enum
139 slice_mode mode = slice_mode::shrink) { in slice()
149 r.crop = mode == slice_mode::crop; in slice()
164 slice_mode mode = slice_mode::shrink) { in slice()
291 slice_mode mode = slice_mode::shrink) { in slice_and_rebin()
311 slice_mode mode = slice_mode::shrink) { in slice_and_rebin()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/ir/vision/
Dslice_patches_ir.cc26 …atchesOperation::SlicePatchesOperation(int32_t num_height, int32_t num_width, SliceMode slice_mode, in SlicePatchesOperation() argument
31 slice_mode_(slice_mode), in SlicePatchesOperation()
66 SliceMode slice_mode = static_cast<SliceMode>(op_params["slice_mode"]); in from_json() local
68 …*operation = std::make_shared<vision::SlicePatchesOperation>(num_height, num_width, slice_mode, fi… in from_json()
Dslice_patches_ir.h39 …SlicePatchesOperation(int32_t num_height, int32_t num_width, SliceMode slice_mode, uint8_t fill_va…
/third_party/mindspore/mindspore/nn/layer/
Dembedding.py224 target='CPU', slice_mode='batch_slice', manual_shapes=None, argument
246 self._process_vocab_cache(slice_mode)
264 if slice_mode == "field_slice" and is_auto_parallel:
277 elif slice_mode == "table_row_slice" and is_auto_parallel:
286 elif slice_mode == "table_column_slice" and is_auto_parallel:
294 elif slice_mode == "batch_slice" and is_auto_parallel:
304 "but got \"{}\".".format(self.cls_name, support_mode, slice_mode))
335 def _process_vocab_cache(self, slice_mode): argument
354 if rank_size > 1 and not (full_batch and slice_mode == "table_row_slice"):
477slice_mode='batch_slice', feature_num_list=None, max_norm=None, sparse=True, operator='SUM'): argument
[all …]
Dthor_layer.py721 target='CPU', slice_mode='batch_slice', manual_shapes=None, argument
745 self._process_vocab_cache(slice_mode)
763 if slice_mode == "field_slice" and is_auto_parallel:
776 elif slice_mode == "table_row_slice" and is_auto_parallel:
785 elif slice_mode == "table_column_slice" and is_auto_parallel:
793 elif slice_mode == "batch_slice" and is_auto_parallel:
865 def _process_vocab_cache(self, slice_mode): argument
885 if rank_size > 1 and not (full_batch and slice_mode == "table_row_slice"):
/third_party/ffmpeg/libavcodec/
Dlibopenh264enc.c45 int slice_mode; member
66 …{ "slice_mode", "set slice mode, use slices/max_nal_size", OFFSET(slice_mode), AV_OPT_TYPE_INT, { …
68 …{ "slice_mode", "set slice mode, use slices/max_nal_size", OFFSET(slice_mode), AV_OPT_TYPE_INT, { …
312 s->slice_mode = SM_FIXEDSLCNUM_SLICE; in svc_encode_init()
315 s->slice_mode = SM_SIZELIMITED_SLICE; in svc_encode_init()
318 param.sSpatialLayers[0].sSliceArgument.uiSliceMode = s->slice_mode; in svc_encode_init()
321 param.sSpatialLayers[0].sSliceCfg.uiSliceMode = s->slice_mode; in svc_encode_init()
324 if (avctx->slices == 0 && s->slice_mode == SM_FIXEDSLCNUM_SLICE) in svc_encode_init()
327 if (s->slice_mode == SM_SIZELIMITED_SLICE) { in svc_encode_init()
/third_party/gstreamer/gstplugins_bad/ext/openh264/
Dgstopenh264enc.cpp406 openh264enc->slice_mode = DEFAULT_SLICE_MODE; in gst_openh264enc_init()
533 openh264enc->slice_mode = in gst_openh264enc_set_property()
621 g_value_set_enum (value, openh264enc->slice_mode); in gst_openh264enc_get_property()
733 SliceModeEnum slice_mode = SM_SINGLE_SLICE; in gst_openh264enc_set_format() local
816 if (openh264enc->slice_mode == GST_OPENH264_SLICE_MODE_N_SLICES) { in gst_openh264enc_set_format()
818 slice_mode = SM_SINGLE_SLICE; in gst_openh264enc_set_format()
820 slice_mode = SM_FIXEDSLCNUM_SLICE; in gst_openh264enc_set_format()
822 } else if (openh264enc->slice_mode == GST_OPENH264_SLICE_MODE_AUTO) { in gst_openh264enc_set_format()
824 slice_mode = SM_AUTO_SLICE; in gst_openh264enc_set_format()
826 slice_mode = SM_FIXEDSLCNUM_SLICE; in gst_openh264enc_set_format()
[all …]
Dgstopenh264enc.h91 GstOpenh264EncSliceMode slice_mode; member
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/
Dslice_patches_op.cc27 SlicePatchesOp::SlicePatchesOp(int32_t num_height, int32_t num_width, SliceMode slice_mode, uint8_t… in SlicePatchesOp() argument
28 …: num_height_(num_height), num_width_(num_width), slice_mode_(slice_mode), fill_value_(fill_value)… in SlicePatchesOp()
Dslice_patches_op.h38 …SlicePatchesOp(int32_t num_height = kDefNumH, int32_t num_width = kDefNumW, SliceMode slice_mode =…
Dimage_utils.h366 … int32_t num_height, int32_t num_width, SliceMode slice_mode, uint8_t fill_value);
376 SliceMode slice_mode);
Dimage_utils.cc1511 SliceMode slice_mode) { in ComputePatchSize() argument
1531 if (slice_mode == SliceMode::kPad) { in ComputePatchSize()
1537 if (slice_mode == SliceMode::kPad) { in ComputePatchSize()
1547 … int32_t num_height, int32_t num_width, SliceMode slice_mode, uint8_t fill_value) { in SlicePatches() argument
1558 RETURN_IF_NOT_OK(ComputePatchSize(input_cv, &patch_size, num_height, num_width, slice_mode)); in SlicePatches()
1565 if (slice_mode == SliceMode::kPad) { // padding on right and bottom directions in SlicePatches()
/third_party/boost/libs/histogram/test/
Dalgorithm_reduce_test.cpp222 auto hr2 = reduce(h, slice(1, 3, slice_mode::crop), in run_tests()
223 slice_and_rebin(1, 3, 2, slice_mode::crop)); in run_tests()
229 auto hr4 = reduce(h, slice_and_rebin(1, 1, 3, 2, slice_mode::crop), in run_tests()
230 slice(0, 1, 3, slice_mode::crop)); in run_tests()
/third_party/gstreamer/gstplugins_bad/sys/uvch264/
Dgstuvch264_src.h130 UvcH264SliceMode slice_mode; member
Dgstuvch264_src.c536 self->slice_mode = DEFAULT_SLICE_MODE; in gst_uvc_h264_src_init()
620 self->slice_mode = g_value_get_enum (value); in gst_uvc_h264_src_set_property()
1824 probe->wSliceMode = self->slice_mode; in fill_probe_commit()
/third_party/mindspore/mindspore/dataset/vision/
Dc_transforms.py1704 def __init__(self, num_height=1, num_width=1, slice_mode=SliceMode.PAD, fill_value=0): argument
1707 self.slice_mode = slice_mode
1712 DE_C_SLICE_MODE[self.slice_mode], self.fill_value)
Dvalidators.py516 … [num_height, num_width, slice_mode, fill_value], _ = parse_user_args(method, *args, **kwargs)
523 if slice_mode is not None:
524 type_check(slice_mode, (SliceMode,), "slice_mode")
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/
Dvision.cc948 Data(int32_t num_height, int32_t num_width, SliceMode slice_mode, uint8_t fill_value) in Data()
949 …: num_height_(num_height), num_width_(num_width), slice_mode_(slice_mode), fill_value_(fill_value)… in Data()
956 SlicePatches::SlicePatches(int32_t num_height, int32_t num_width, SliceMode slice_mode, uint8_t fil… in SlicePatches() argument
957 : data_(std::make_shared<Data>(num_height, num_width, slice_mode, fill_value)) {} in SlicePatches()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/python/bindings/dataset/kernels/ir/image/
Dbindings.cc587 ….def(py::init([](int32_t num_height, int32_t num_width, SliceMode slice_mode, uint8_t fill_value) { in __anon574f76b45602() argument
589 … std::make_shared<vision::SlicePatchesOperation>(num_height, num_width, slice_mode, fill_value); in __anon574f76b45602()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/include/dataset/
Dvision.h919 …SlicePatches(int32_t num_height = 1, int32_t num_width = 1, SliceMode slice_mode = SliceMode::kPad,
/third_party/ffmpeg/doc/
Dencoders.texi1853 is 0. This is only used when @option{slice_mode} is set to
1856 @item slice_mode