Home
last modified time | relevance | path

Searched refs:cde (Results 1 – 25 of 40) sorted by relevance

12

/third_party/mindspore/mindspore/dataset/core/
Ddatatypes.py19 import mindspore._c_dataengine as cde namespace
39 mstype.bool_: cde.DataType("bool"),
40 mstype.int8: cde.DataType("int8"),
41 mstype.int16: cde.DataType("int16"),
42 mstype.int32: cde.DataType("int32"),
43 mstype.int64: cde.DataType("int64"),
44 mstype.uint8: cde.DataType("uint8"),
45 mstype.uint16: cde.DataType("uint16"),
46 mstype.uint32: cde.DataType("uint32"),
47 mstype.uint64: cde.DataType("uint64"),
[all …]
Dconfig.py30 import mindspore._c_dataengine as cde namespace
42 _config = cde.GlobalContext.config_manager()
Dvalidator_helpers.py23 import mindspore._c_dataengine as cde namespace
717 …if not isinstance(param, cde.TensorOp) and not callable(param) and not getattr(param, 'parse', Non…
725 …if not isinstance(param, cde.TensorOp) and not callable(param) and not getattr(param, 'parse', Non…
/third_party/mindspore/mindspore/dataset/transforms/
Dc_transforms.py22 import mindspore._c_dataengine as cde namespace
38 tensor_row.append(cde.Tensor(np.asarray(tensor)))
42 callable_op = cde.Execute(self.parse())
79 return cde.OneHotOperation(self.num_classes)
106 self.fill_value = cde.Tensor(np.array(fill_value))
109 return cde.FillOperation(self.fill_value)
139 return cde.TypeCastOperation(self.data_type)
142 class _SliceOption(cde.SliceOption):
210 return cde.SliceOperation(self.slice_input_)
235 DE_C_RELATIONAL = {Relational.EQ: cde.RelationalOp.EQ,
[all …]
/third_party/mindspore/mindspore/dataset/vision/
Dc_transforms.py48 import mindspore._c_dataengine as cde namespace
78 DE_C_BORDER_TYPE = {Border.CONSTANT: cde.BorderType.DE_BORDER_CONSTANT,
79 Border.EDGE: cde.BorderType.DE_BORDER_EDGE,
80 Border.REFLECT: cde.BorderType.DE_BORDER_REFLECT,
81 Border.SYMMETRIC: cde.BorderType.DE_BORDER_SYMMETRIC}
83 DE_C_IMAGE_BATCH_FORMAT = {ImageBatchFormat.NHWC: cde.ImageBatchFormat.DE_IMAGE_BATCH_FORMAT_NHWC,
84 ImageBatchFormat.NCHW: cde.ImageBatchFormat.DE_IMAGE_BATCH_FORMAT_NCHW}
86 DE_C_INTER_MODE = {Inter.NEAREST: cde.InterpolationMode.DE_INTER_NEAREST_NEIGHBOUR,
87 Inter.LINEAR: cde.InterpolationMode.DE_INTER_LINEAR,
88 Inter.CUBIC: cde.InterpolationMode.DE_INTER_CUBIC,
[all …]
/third_party/mindspore/mindspore/dataset/audio/
Dtransforms.py24 import mindspore._c_dataengine as cde namespace
73 return cde.AllpassBiquadOperation(self.sample_rate, self.central_freq, self.Q)
76 DE_C_SCALETYPE_TYPE = {ScaleType.MAGNITUDE: cde.ScaleType.DE_SCALETYPE_MAGNITUDE,
77 ScaleType.POWER: cde.ScaleType.DE_SCALETYPE_POWER}
108 …return cde.AmplitudeToDBOperation(DE_C_SCALETYPE_TYPE[self.stype], self.ref_value, self.amin, self…
126 return cde.AngleOperation()
157 return cde.BandBiquadOperation(self.sample_rate, self.central_freq, self.Q, self.noise)
188 …return cde.BandpassBiquadOperation(self.sample_rate, self.central_freq, self.Q, self.const_skirt_g…
216 return cde.BandrejectBiquadOperation(self.sample_rate, self.central_freq, self.Q)
246 return cde.BassBiquadOperation(self.sample_rate, self.gain, self.central_freq, self.Q)
[all …]
/third_party/mindspore/mindspore/dataset/text/
Dtransforms.py47 import mindspore._c_dataengine as cde namespace
71 JiebaMode.MIX: cde.JiebaMode.DE_JIEBA_MIX,
72 JiebaMode.MP: cde.JiebaMode.DE_JIEBA_MP,
73 JiebaMode.HMM: cde.JiebaMode.DE_JIEBA_HMM
77 SPieceTokenizerLoadType.FILE: cde.SPieceTokenizerLoadType.DE_SPIECE_TOKENIZER_LOAD_KFILE,
78 SPieceTokenizerLoadType.MODEL: cde.SPieceTokenizerLoadType.DE_SPIECE_TOKENIZER_LOAD_KMODEL
82 SPieceTokenizerOutType.STRING: cde.SPieceTokenizerOutType.DE_SPIECE_TOKENIZER_OUTTYPE_KString,
83 SPieceTokenizerOutType.INT: cde.SPieceTokenizerOutType.DE_SPIECE_TOKENIZER_OUTTYPE_KINT
136 jieba_tokenizer = cde.JiebaTokenizerOperation(self.hmm_path, self.mp_path,
283 … return cde.LookupOperation(self.vocab, self.unknown_token, str(mstype_to_detype(self.data_type)))
[all …]
Dutils.py22 import mindspore._c_dataengine as cde namespace
32 class Vocab(cde.Vocab):
151 class SentencePieceVocab(cde.SentencePieceVocab):
355 SentencePieceModel.UNIGRAM: cde.SentencePieceModel.DE_SENTENCE_PIECE_UNIGRAM,
356 SentencePieceModel.BPE: cde.SentencePieceModel.DE_SENTENCE_PIECE_BPE,
357 SentencePieceModel.CHAR: cde.SentencePieceModel.DE_SENTENCE_PIECE_CHAR,
358 SentencePieceModel.WORD: cde.SentencePieceModel.DE_SENTENCE_PIECE_WORD
Dvalidators.py22 import mindspore._c_dataengine as cde namespace
52 type_check(vocab, (cde.Vocab,), "vocab is not an instance of cde.Vocab.")
205 if not isinstance(vocab, cde.Vocab):
281 if not isinstance(vocab, cde.Vocab):
507 type_check(vocab, (cde.SentencePieceVocab,), "vocab")
529 …type_check(mode, (str, cde.SentencePieceVocab), "mode is not an instance of str or cde.SentencePie…
/third_party/mindspore/tests/ut/python/dataset/
Dtest_Tensor.py17 import mindspore._c_dataengine as cde namespace
22 s = cde.TensorShape(x)
29 n = cde.Tensor(x)
35 assert n.type() == cde.DataType("int64")
41 assert n.type() == cde.DataType("int64")
47 n1 = cde.Tensor(x[:, 1])
52 n2 = cde.Tensor(x.transpose())
Dtest_filterop.py19 import mindspore.dataset.vision.c_transforms as cde namespace
29 cde.Decode(),
30 cde.Resize([64, 64])
Dtest_tensor_string.py16 import mindspore._c_dataengine as cde namespace
25 n = cde.Tensor(x)
/third_party/mindspore/mindspore/dataset/engine/
Dsamplers.py24 import mindspore._c_dataengine as cde namespace
285 c_sampler = cde.PreBuiltSamplerObj(num_samples, self)
388 c_sampler = cde.DistributedSamplerObj(self.num_shards, self.shard_id,
398 c_sampler = cde.MindrecordDistributedSampler(self.num_shards, self.shard_id, shuffle,
479 c_sampler = cde.PKSamplerObj(self.num_val, shuffle, num_samples)
502 … c_sampler = cde.MindrecordPkSampler(self.num_val, self.class_column, self.shuffle, num_samples)
549 c_sampler = cde.RandomSamplerObj(replacement, num_samples, self.reshuffle_each_epoch)
557 … c_sampler = cde.MindrecordRandomSampler(num_samples, self.replacement, self.reshuffle_each_epoch)
612 c_sampler = cde.SequentialSamplerObj(start_index, num_samples)
621 c_sampler = cde.MindrecordSequentialSampler(num_samples, start_index)
[all …]
Ddatasets.py47 import mindspore._c_dataengine as cde namespace
89 ShuffleToShuffleMode = {Shuffle.FILES: cde.ShuffleMode.FILES,
90 Shuffle.GLOBAL: cde.ShuffleMode.GLOBAL,
91 Shuffle.INFILE: cde.ShuffleMode.INFILE}
96 shuffle_mode = cde.ShuffleMode.GLOBAL # Global shuffle
99 shuffle_mode = cde.ShuffleMode.GLOBAL # Global shuffle
101 shuffle_mode = cde.ShuffleMode.FALSE # No shuffle
1147 vocab = cde.Vocab()
1163 …vocab_node = cde.BuildVocabNode(ir_tree, vocab, columns, freq_range, top_k, special_tokens, specia…
1165 runtime_context = cde.PythonRuntimeContext()
[all …]
Diterators.py24 import mindspore._c_dataengine as cde namespace
74 self._runtime_context = cde.PythonRuntimeContext()
76 consumer = cde.PythonIteratorConsumer(num_epochs)
151 getter = cde.TreeGetters()
/third_party/python/Modules/_xxtestfuzz/dictionaries/
Dfuzz_sre_compile.dict167 "(?:ab|cde)"
168 "(?:ab)|cde"
170 "(ab|cde)"
172 "(ab|cde)\\1"
/third_party/icu/icu4c/source/test/testdata/
Dicuio.txt166 { "%*3[abc]%[cde]", "abccdefg", "S", "cde" }
Dre_tests.txt168 [^ab]* cde y $& cde
182 (ab|cd)e abcde y $&-$1 cde-cd
Dregextst.txt420 "[\x61b]+" "<0>abab</0>cde"
624 "(?<=abc)cde" "abcde"
625 "(?<=abc|ab)cde" "ab<0>cde</0>"
626 "(?<=abc|ab)cde" "abc<0>cde</0>"
1197 "[a-z&&[cde]]+" "ab<0>cde</0>fg"
/third_party/pcre2/pcre2/testdata/
Dtestinput6615 /^[ab\]cde]/
627 /^[]cde]/
636 /^[^ab\]cde]/
648 /^[^]cde]/
797 ab cde
803 ab cde
2956 cde
4807 /ab(?C" any text with spaces ")cde/B
Dtestoutput61098 /^[ab\]cde]/
1119 /^[]cde]/
1134 /^[^ab\]cde]/
1155 /^[^]cde]/
1396 ab cde
1405 ab cde
4495 cde
4496 0: cde
4533 0: cde
7467 /ab(?C" any text with spaces ")cde/B
[all …]
Dtestinput12419 ab\x{df00}cde
Dtestinput1113 /^[ab\]cde]/
125 /^[]cde]/
134 /^[^ab\]cde]/
146 /^[^]cde]/
297 ab cde
303 ab cde
2632 cde
/third_party/typescript/tests/baselines/reference/
DtemplateLiteralTypes1.types190 type T25 = FirstTwoAndRest<'abcde'>; // ['ab', 'cde']
191 >T25 : ["ab", "cde"]
DtemplateLiteralTypes1.errors.txt111 type T25 = FirstTwoAndRest<'abcde'>; // ['ab', 'cde']

12