Home
last modified time | relevance | path

Searched refs:GainType (Results 1 – 14 of 14) sorted by relevance

/third_party/mindspore/tests/ut/python/dataset/
Dtest_vol.py62 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/
Dvol_op.h31 …explicit VolOp(float gain, GainType gain_type = GainType::kAmplitude) : gain_(gain), gain_type_(ga… in gain_()
43 GainType gain_type_;
Daudio_utils.h335 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/
Dvol_ir.cc25 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()
Dvol_ir.h35 VolOperation(float gain, GainType gain_type);
49 GainType gain_type_;
/third_party/mindspore/mindspore/dataset/audio/
Dtransforms.py26 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):
Dvalidators.py24 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:
Dutils.py42 class GainType(str, Enum): class
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/python/bindings/dataset/audio/kernels/ir/
Dbindings.cc311 .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/
Daudio.cc377 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/
Daudio.h547 explicit Vol(float gain, GainType gain_type = GainType::kAmplitude);
Dconstants.h83 enum class GainType { enum
/third_party/mindspore/tests/ut/cpp/dataset/
Dc_api_audio_r_to_z_test.cc208 auto vol_op = audio::Vol(-1.5, GainType::kPower); in TEST_F()
Dexecute_test.cc1080 std::shared_ptr<TensorTransform> vol_op = std::make_shared<audio::Vol>(0.2, GainType::kPower); in TEST_F()