/third_party/mindspore/mindspore/dataset/audio/ |
D | transforms.py | 486 def __init__(self, iid_masks=False, frequency_mask_param=0, mask_start=0, mask_value=0.0): argument 489 self.mask_start = mask_start 493 … return cde.FrequencyMaskingOperation(self.iid_masks, self.frequency_mask_param, self.mask_start, 658 def __init__(self, iid_masks=False, time_mask_param=0, mask_start=0, mask_value=0.0): argument 661 self.mask_start = mask_start 665 …return cde.TimeMaskingOperation(self.iid_masks, self.time_mask_param, self.mask_start, self.mask_v…
|
D | validators.py | 315 [iid_masks, mask_param, mask_start, mask_value], _ = parse_user_args( 320 type_check(mask_start, (int,), "mask_start") 321 check_non_negative_float32(mask_start, "mask_start")
|
/third_party/mindspore/tests/ut/python/dataset/ |
D | test_frequency_masking.py | 99 … def test_invalid_param(test_name, iid_masks, frequency_mask_param, mask_start, error, error_msg): argument 102 audio.FrequencyMasking(iid_masks, frequency_mask_param, mask_start) 105 … def test_invalid_input(test_name, iid_masks, frequency_mask_param, mask_start, error, error_msg): argument 109 _ = audio.FrequencyMasking(iid_masks, frequency_mask_param, mask_start)(spectrogram)
|
D | test_time_masking.py | 99 def test_invalid_param(test_name, iid_masks, time_mask_param, mask_start, error, error_msg): argument 102 audio.TimeMasking(iid_masks, time_mask_param, mask_start) 105 def test_invalid_input(test_name, iid_masks, time_mask_param, mask_start, error, error_msg): argument 109 _ = audio.TimeMasking(iid_masks, time_mask_param, mask_start)(spectrogram)
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/ |
D | audio.cc | 254 Data(bool iid_masks, int32_t frequency_mask_param, int32_t mask_start, float mask_value) in Data() 257 mask_start_(mask_start), in Data() 265 FrequencyMasking::FrequencyMasking(bool iid_masks, int32_t frequency_mask_param, int32_t mask_start… in FrequencyMasking() argument 266 : data_(std::make_shared<Data>(iid_masks, frequency_mask_param, mask_start, mask_value)) {} in FrequencyMasking() 343 Data(bool iid_masks, int32_t time_mask_param, int32_t mask_start, float mask_value) in Data() 344 …: iid_masks_(iid_masks), time_mask_param_(time_mask_param), mask_start_(mask_start), mask_value_(m… in Data() 351 TimeMasking::TimeMasking(bool iid_masks, int32_t time_mask_param, int32_t mask_start, float mask_va… in TimeMasking() argument 352 : data_(std::make_shared<Data>(iid_masks, time_mask_param, mask_start, mask_value)) {} in TimeMasking()
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/audio/ir/kernels/ |
D | time_masking_ir.cc | 25 …MaskingOperation::TimeMaskingOperation(bool iid_masks, int32_t time_mask_param, int32_t mask_start, in TimeMaskingOperation() argument 27 …: iid_masks_(iid_masks), time_mask_param_(time_mask_param), mask_start_(mask_start), mask_value_(m… in TimeMaskingOperation()
|
D | frequency_masking_ir.cc | 24 …ration::FrequencyMaskingOperation(bool iid_masks, int32_t frequency_mask_param, int32_t mask_start, in FrequencyMaskingOperation() argument 28 mask_start_(mask_start), in FrequencyMaskingOperation()
|
D | frequency_masking_ir.h | 34 …FrequencyMaskingOperation(bool iid_masks, int32_t frequency_mask_param, int32_t mask_start, float …
|
D | time_masking_ir.h | 34 …TimeMaskingOperation(bool iid_masks, int32_t time_mask_param, int32_t mask_start, float mask_value…
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/audio/kernels/ |
D | time_masking_op.cc | 26 TimeMaskingOp::TimeMaskingOp(bool iid_masks, int32_t time_mask_param, int32_t mask_start, float mas… in TimeMaskingOp() argument 27 …: iid_masks_(iid_masks), time_mask_param_(time_mask_param), mask_start_(mask_start), mask_value_(m… in TimeMaskingOp()
|
D | frequency_masking_op.cc | 26 …encyMaskingOp::FrequencyMaskingOp(bool iid_masks, int32_t frequency_mask_param, int32_t mask_start, in FrequencyMaskingOp() argument 29 mask_start_(mask_start), in FrequencyMaskingOp()
|
D | audio_utils.cc | 355 int32_t mask_start = min_freq_value(rnd); in RandomMaskAlongAxis() local 357 return MaskAlongAxis(input, output, mask_width, mask_start, mask_value, axis); in RandomMaskAlongAxis() 361 int32_t mask_start, float mask_value, int32_t axis) { in MaskAlongAxis() argument 371 CHECK_FAIL_RETURN_UNEXPECTED(0 <= mask_start && mask_start <= input_shape[check_dim_ind], in MaskAlongAxis() 373 CHECK_FAIL_RETURN_UNEXPECTED(mask_start + mask_width <= input_shape[check_dim_ind], in MaskAlongAxis() 382 auto start_pos = ind % (mask_width * input_shape[-1]) + mask_start * input_shape[-1] + in MaskAlongAxis() 400 auto start_pos = ind % mask_width + mask_start + input_shape[-1] * row_num; in MaskAlongAxis()
|
D | time_masking_op.h | 33 …explicit TimeMaskingOp(bool iid_masks = false, int32_t time_mask_param = 0, int32_t mask_start = 0,
|
D | frequency_masking_op.h | 33 …requencyMaskingOp(bool iid_masks = false, int32_t frequency_mask_param = 0, int32_t mask_start = 0,
|
D | audio_utils.h | 304 int32_t mask_start, float mask_value, int32_t axis);
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/python/bindings/dataset/audio/kernels/ir/ |
D | bindings.cc | 223 ….def(py::init([](bool iid_masks, int32_t frequency_mask_param, int32_t mask_start, float mask_valu… in __anona6eb1ce31f02() argument 225 …_shared<audio::FrequencyMaskingOperation>(iid_masks, frequency_mask_param, mask_start, mask_value); in __anona6eb1ce31f02() 289 … .def(py::init([](bool iid_masks, int32_t time_mask_param, int32_t mask_start, float mask_value) { in __anona6eb1ce32b02() argument 291 … std::make_shared<audio::TimeMaskingOperation>(iid_masks, time_mask_param, mask_start, mask_value); in __anona6eb1ce32b02()
|
/third_party/ffmpeg/libavcodec/ |
D | midivid.c | 54 const uint8_t *mask_start; in decode_mvdv() local 70 mask_start = gb->buffer_start + bytestream2_tell(gb); in decode_mvdv() 77 ret = init_get_bits8(&mask, mask_start, mask_size); in decode_mvdv()
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/include/dataset/ |
D | audio.h | 361 … FrequencyMasking(bool iid_masks = false, int32_t frequency_mask_param = 0, int32_t mask_start = 0, 498 explicit TimeMasking(bool iid_masks = false, int32_t time_mask_param = 0, int32_t mask_start = 0,
|