Searched refs:GainType (Results 1 – 14 of 14) sorted by relevance
/third_party/mindspore/tests/ut/python/dataset/ |
D | test_vol.py | 62 op = c_audio.Vol(gain=0.2, gain_type=utils.GainType.AMPLITUDE) 79 op = c_audio.Vol(gain=-0.05, gain_type=utils.GainType.DB) 92 op = c_audio.Vol(gain=0.2, gain_type=utils.GainType.POWER) 106 transforms = [c_audio.Vol(gain=10, gain_type=utils.GainType.POWER)] 121 transforms = [c_audio.Vol(gain=0.2, gain_type=utils.GainType.AMPLITUDE)] 135 transforms = [c_audio.Vol(gain=-1.5, gain_type=utils.GainType.DB)] 149 …test_invalid_input("invalid gain value when gain_type equals 'power'", -1.5, utils.GainType.POWER,… 151 …test_invalid_input("invalid gain value when gain_type equals 'amplitude'", -1.5, utils.GainType.AM…
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/audio/kernels/ |
D | vol_op.h | 31 …explicit VolOp(float gain, GainType gain_type = GainType::kAmplitude) : gain_(gain), gain_type_(ga… in gain_() 43 GainType gain_type_;
|
D | audio_utils.h | 335 Status Vol(const std::shared_ptr<Tensor> &input, std::shared_ptr<Tensor> *output, T gain, GainType … in Vol() 348 if (gain_type == GainType::kDb) { in Vol() 352 } else if (gain_type == GainType::kPower) { in Vol() 358 if (gain != 0 || gain_type == GainType::kAmplitude) { in Vol()
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/audio/ir/kernels/ |
D | vol_ir.cc | 25 VolOperation::VolOperation(float gain, GainType gain_type) : gain_(gain), gain_type_(gain_type) {} in VolOperation() 33 !(gain_type_ == GainType::kPower && gain_ <= 0), in ValidateParams() 37 !(gain_type_ == GainType::kAmplitude && gain_ < 0), in ValidateParams()
|
D | vol_ir.h | 35 VolOperation(float gain, GainType gain_type); 49 GainType gain_type_;
|
/third_party/mindspore/mindspore/dataset/audio/ |
D | transforms.py | 26 from .utils import FadeShape, GainType, ScaleType 699 DE_C_GAINTYPE_TYPE = {GainType.AMPLITUDE: cde.GainType.DE_GAINTYPE_AMPLITUDE, 700 GainType.POWER: cde.GainType.DE_GAINTYPE_POWER, 701 GainType.DB: cde.GainType.DE_GAINTYPE_DB} 726 def __init__(self, gain, gain_type=GainType.AMPLITUDE):
|
D | validators.py | 24 from .utils import FadeShape, GainType, ScaleType 406 type_check(gain_type, (GainType,), "gain_type") 407 if gain_type == GainType.AMPLITUDE: 409 elif gain_type == GainType.POWER:
|
D | utils.py | 42 class GainType(str, Enum): class
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/python/bindings/dataset/audio/kernels/ir/ |
D | bindings.cc | 311 .def(py::init([](float gain, GainType gain_type) { in __anona6eb1ce32f02() 318 PYBIND_REGISTER(GainType, 0, ([](const py::module *m) { in __anona6eb1ce33102() 319 (void)py::enum_<GainType>(*m, "GainType", py::arithmetic()) in __anona6eb1ce33102() 320 .value("DE_GAINTYPE_AMPLITUDE", GainType::kAmplitude) in __anona6eb1ce33102() 321 .value("DE_GAINTYPE_POWER", GainType::kPower) in __anona6eb1ce33102() 322 .value("DE_GAINTYPE_DB", GainType::kDb) in __anona6eb1ce33102()
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/ |
D | audio.cc | 377 Data(float gain, GainType gain_type) : gain_(gain), gain_type_(gain_type) {} in Data() 379 GainType gain_type_; 382 Vol::Vol(float gain, GainType gain_type) : data_(std::make_shared<Data>(gain, gain_type)) {} in Vol()
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/include/dataset/ |
D | audio.h | 547 explicit Vol(float gain, GainType gain_type = GainType::kAmplitude);
|
D | constants.h | 83 enum class GainType { enum
|
/third_party/mindspore/tests/ut/cpp/dataset/ |
D | c_api_audio_r_to_z_test.cc | 208 auto vol_op = audio::Vol(-1.5, GainType::kPower); in TEST_F()
|
D | execute_test.cc | 1080 std::shared_ptr<TensorTransform> vol_op = std::make_shared<audio::Vol>(0.2, GainType::kPower); in TEST_F()
|