Home
last modified time | relevance | path

Searched refs:transforms (Results 1 – 25 of 544) sorted by relevance

12345678910>>...22

/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/python/bindings/dataset/kernels/ir/
Dbindings.cc33 …ops->emplace_back(std::make_shared<transforms::PreBuiltOperation>(op.cast<std::shared_ptr<TensorOp… in PyListToTensorOperations()
36 …std::make_shared<transforms::PreBuiltOperation>(std::make_shared<PyFuncOp>(op.cast<py::function>()… in PyListToTensorOperations()
57 …(void)py::class_<transforms::PluginOperation, TensorOperation, std::shared_ptr<transforms::PluginO… in __anon360f34600202()
68 …(void)py::class_<transforms::ComposeOperation, TensorOperation, std::shared_ptr<transforms::Compos… in __anon360f34600402()
73 auto compose = std::make_shared<transforms::ComposeOperation>(std::move(t_ops)); in __anon360f34600402()
82 …py::class_<transforms::ConcatenateOperation, TensorOperation, std::shared_ptr<transforms::Concaten… in __anon360f34600602()
85 … auto concatenate = std::make_shared<transforms::ConcatenateOperation>(axis, prepend, append); in __anon360f34600602()
93 …(void)py::class_<transforms::DuplicateOperation, TensorOperation, std::shared_ptr<transforms::Dupl… in __anon360f34600802()
96 auto duplicate = std::make_shared<transforms::DuplicateOperation>(); in __anon360f34600802()
104 …py::class_<transforms::FillOperation, TensorOperation, std::shared_ptr<transforms::FillOperation>>( in __anon360f34600a02()
[all …]
/third_party/mindspore/mindspore/dataset/transforms/
Dpy_transforms.py52 for transform in self.transforms:
77 transforms = []
79 transforms.append(getattr(
82 new_op.transforms = transforms
181 def __init__(self, transforms): argument
182 self.transforms = transforms
183 … if all(hasattr(transform, "random") and not transform.random for transform in self.transforms):
194 return util.compose(self.transforms, *args)
248 def __init__(self, transforms, prob=0.5): argument
250 self.transforms = transforms
[all …]
Dpy_transforms_util.py36 def compose(transforms, *args): argument
47 for transform in transforms:
112 def random_order(img, transforms): argument
123 random.shuffle(transforms)
124 for transform in transforms:
129 def random_apply(img, transforms, prob): argument
143 for transform in transforms:
148 def random_choice(img, transforms): argument
159 return random.choice(transforms)(img)
Dc_transforms.py429 def __init__(self, transforms): argument
430 self.transforms = transforms
434 for op in self.transforms:
456 def __init__(self, transforms, prob=0.5): argument
457 self.transforms = transforms
462 for op in self.transforms:
483 def __init__(self, transforms): argument
484 self.transforms = transforms
488 for op in self.transforms:
/third_party/flutter/skia/third_party/externals/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/
DTJTransformer.java97 public void transform(byte[][] dstBufs, TJTransform[] transforms, in transform() argument
101 transformedSizes = transform(jpegBuf, jpegBufSize, dstBufs, transforms, in transform()
120 public TJDecompressor[] transform(TJTransform[] transforms, int flags) in transform() argument
122 byte[][] dstBufs = new byte[transforms.length][]; in transform()
125 for (int i = 0; i < transforms.length; i++) { in transform()
127 if ((transforms[i].options & TJTransform.OPT_CROP) != 0) { in transform()
128 if (transforms[i].width != 0) w = transforms[i].width; in transform()
129 if (transforms[i].height != 0) h = transforms[i].height; in transform()
133 TJDecompressor[] tjd = new TJDecompressor[transforms.length]; in transform()
134 transform(dstBufs, transforms, flags); in transform()
[all …]
/third_party/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/
DTJTransformer.java97 public void transform(byte[][] dstBufs, TJTransform[] transforms, in transform() argument
101 transformedSizes = transform(jpegBuf, jpegBufSize, dstBufs, transforms, in transform()
120 public TJDecompressor[] transform(TJTransform[] transforms, int flags) in transform() argument
122 byte[][] dstBufs = new byte[transforms.length][]; in transform()
125 for (int i = 0; i < transforms.length; i++) { in transform()
127 if ((transforms[i].options & TJTransform.OPT_CROP) != 0) { in transform()
128 if (transforms[i].width != 0) w = transforms[i].width; in transform()
129 if (transforms[i].height != 0) h = transforms[i].height; in transform()
133 TJDecompressor[] tjd = new TJDecompressor[transforms.length]; in transform()
134 transform(dstBufs, transforms, flags); in transform()
[all …]
/third_party/mindspore/tests/ut/python/dataset/
Dtest_to_type.py20 import mindspore.dataset.transforms.py_transforms
45 transform1 = mindspore.dataset.transforms.py_transforms.Compose(transforms1)
54 transform2 = mindspore.dataset.transforms.py_transforms.Compose(transforms2)
78 transforms = [
84 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
100 transforms = [
106 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
124 transforms = [
129 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
146 transforms = [
[all …]
Dtest_linear_transformation.py20 import mindspore.dataset.transforms.py_transforms
45 transforms = [
50 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
95 transforms = [
101 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
125 transforms = [
131 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
154 transforms = [
160 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
184 transforms = [
[all …]
Dtest_random_crop.py20 import mindspore.dataset.transforms.py_transforms
21 import mindspore.dataset.transforms.c_transforms as ops
78 transform1 = mindspore.dataset.transforms.py_transforms.Compose(transforms1)
87 transform2 = mindspore.dataset.transforms.py_transforms.Compose(transforms2)
135 transforms = [
140 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
184 transforms = [
189 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
233 transforms = [
238 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
[all …]
Dtest_random_grayscale.py20 import mindspore.dataset.transforms.py_transforms
47 transform1 = mindspore.dataset.transforms.py_transforms.Compose(transforms1)
56 transform2 = mindspore.dataset.transforms.py_transforms.Compose(transforms2)
88 transform1 = mindspore.dataset.transforms.py_transforms.Compose(transforms1)
97 transform2 = mindspore.dataset.transforms.py_transforms.Compose(transforms2)
129 transforms = [
134 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
156 transforms = [
161 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
182 transforms = [
[all …]
Dtest_fade.py21 import mindspore.dataset.audio.transforms as audio
37 transforms = [audio.Fade(fade_in_len=10, fade_out_len=5, fade_shape=FadeShape.LINEAR)]
38 dataset = dataset.map(operations=transforms, input_columns=["audio"])
62 transforms = [audio.Fade(fade_in_len=5, fade_out_len=6, fade_shape=FadeShape.EXPONENTIAL)]
63 dataset = dataset.map(operations=transforms, input_columns=["audio"])
82 transforms = [audio.Fade(fade_in_len=4, fade_out_len=2, fade_shape=FadeShape.LOGARITHMIC)]
83 dataset = dataset.map(operations=transforms, input_columns=["audio"])
104 transforms = [audio.Fade(fade_in_len=6, fade_out_len=6, fade_shape=FadeShape.QUARTERSINE)]
105 dataset = dataset.map(operations=transforms, input_columns=["audio"])
127 transforms = [audio.Fade(fade_in_len=3, fade_out_len=3, fade_shape=FadeShape.HALFSINE)]
[all …]
Dtest_to_pil.py19 import mindspore.dataset.transforms.py_transforms
40 transforms = [
47 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
64 transforms = [
70 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
Dtest_random_crop_and_resize.py21 import mindspore.dataset.transforms.py_transforms
22 import mindspore.dataset.transforms.c_transforms as ops
105 transform1 = mindspore.dataset.transforms.py_transforms.Compose(transforms1)
114 transform2 = mindspore.dataset.transforms.py_transforms.Compose(transforms2)
147 transform1 = mindspore.dataset.transforms.py_transforms.Compose(transforms1)
171 transforms = [
176 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
207 transforms = [
212 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
242 transforms = [
[all …]
Dtest_five_crop.py21 import mindspore.dataset.transforms.py_transforms
43 transform_1 = mindspore.dataset.transforms.py_transforms.Compose(transforms_1)
53 transform_2 = mindspore.dataset.transforms.py_transforms.Compose(transforms_2)
83 transforms = [
88 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
108 transforms = [
113 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
Dtest_type_cast.py22 import mindspore.dataset.transforms.c_transforms as data_util
23 import mindspore.dataset.transforms.py_transforms
51 transforms = [py_vision.Decode(),
54 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
92 transforms = [py_vision.Decode(),
95 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
Dtest_random_color_adjust.py22 import mindspore.dataset.transforms.py_transforms
40 transforms = [
47 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
85 transforms = [
91 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
212 transforms = [
217 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
Dtest_random_horizontal_flip.py20 import mindspore.dataset.transforms.py_transforms
21 import mindspore.dataset.transforms.c_transforms as ops
115 transforms = [
120 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
160 transforms = [
166 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
188 transforms = [
194 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
Dtest_random_vertical_flip.py20 import mindspore.dataset.transforms.py_transforms
21 import mindspore.dataset.transforms.c_transforms as ops
115 transforms = [
120 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
159 transforms = [
165 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
188 transforms = [
194 transform = mindspore.dataset.transforms.py_transforms.Compose(transforms)
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/
Dtransforms.cc30 namespace transforms { namespace
40 Compose::Compose(const std::vector<TensorTransform *> &transforms) : data_(std::make_shared<Data>()… in Compose() argument
41 (void)std::transform(transforms.begin(), transforms.end(), std::back_inserter(data_->transforms_), in Compose()
47 Compose::Compose(const std::vector<std::shared_ptr<TensorTransform>> &transforms) : data_(std::make… in Compose() argument
48 (void)std::transform(transforms.begin(), transforms.end(), std::back_inserter(data_->transforms_), in Compose()
54 Compose::Compose(const std::vector<std::reference_wrapper<TensorTransform>> &transforms) in Compose() argument
56 (void)std::transform(transforms.begin(), transforms.end(), std::back_inserter(data_->transforms_), in Compose()
193 RandomApply::RandomApply(const std::vector<TensorTransform *> &transforms, double prob) in RandomApply() argument
195 (void)std::transform(transforms.begin(), transforms.end(), std::back_inserter(data_->transforms_), in RandomApply()
202 RandomApply::RandomApply(const std::vector<std::shared_ptr<TensorTransform>> &transforms, double pr… in RandomApply() argument
[all …]
/third_party/boost/boost/yap/detail/
Dtransform.hpp267 constexpr decltype(auto) operator()(Expr && expr, TransformTuple transforms) const in operator ()()
283 constexpr incomplete operator()(Expr && expr, TransformTuple transforms) const;
305 Expr const & expr, Tuple && tuple, TransformTuple transforms) in transform_nonterminal() argument
314 return xform(static_cast<element_t &&>(element), transforms); in transform_nonterminal()
324 constexpr decltype(auto) operator()(Expr && expr, TransformTuple transforms) const in operator ()()
326 return transform_nonterminal(expr, expr.elements, transforms); in operator ()()
335 operator()(Expr && expr, TransformTuple transforms) const in operator ()()
338 expr, std::move(expr.elements), transforms); in operator ()()
353 constexpr decltype(auto) operator()(Expr && expr, TransformTuple transforms) const in operator ()()
359 static_cast<Expr &&>(expr), transforms); in operator ()()
[all …]
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/include/dataset/
Dtransforms.h36 namespace transforms {
54 friend class transforms::Compose;
55 friend class transforms::RandomApply;
56 friend class transforms::RandomChoice;
128 namespace transforms {
135 explicit Compose(const std::vector<TensorTransform *> &transforms);
138 explicit Compose(const std::vector<std::shared_ptr<TensorTransform>> &transforms);
141 explicit Compose(const std::vector<std::reference_wrapper<TensorTransform>> &transforms);
292 explicit RandomApply(const std::vector<TensorTransform *> &transforms, double prob = 0.5);
296 …explicit RandomApply(const std::vector<std::shared_ptr<TensorTransform>> &transforms, double prob …
[all …]
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/ir/vision/
Duniform_aug_ir.cc32 …mAugOperation::UniformAugOperation(const std::vector<std::shared_ptr<TensorOperation>> &transforms, in UniformAugOperation() argument
34 : transforms_(transforms), num_ops_(num_ops) {} in UniformAugOperation()
66 std::vector<nlohmann::json> transforms; in to_json() local
72 transforms.push_back(op_item); in to_json()
74 args["transforms"] = transforms; in to_json()
83 std::vector<std::shared_ptr<TensorOperation>> transforms = {}; in from_json() local
84 RETURN_IF_NOT_OK(Serdes::ConstructTensorOps(op_params["transforms"], &transforms)); in from_json()
86 *operation = std::make_shared<vision::UniformAugOperation>(transforms, num_ops); in from_json()
/third_party/skia/third_party/externals/tint/src/
Dclone_context.h198 const auto& transforms = list_transform_it->second; in Clone() local
199 for (auto* o : transforms.insert_front_) { in Clone()
203 auto insert_before_it = transforms.insert_before_.find(el); in Clone()
204 if (insert_before_it != transforms.insert_before_.end()) { in Clone()
209 if (transforms.remove_.count(el) == 0) { in Clone()
212 auto insert_after_it = transforms.insert_after_.find(el); in Clone()
213 if (insert_after_it != transforms.insert_after_.end()) { in Clone()
219 for (auto* o : transforms.insert_back_) { in Clone()
387 auto& transforms = list_transforms_[&vector]; in InsertFront() local
388 auto& list = transforms.insert_front_; in InsertFront()
[all …]
/third_party/mindspore/tests/ut/cpp/dataset/
Dc_api_transforms_test.cc44 transforms::Compose compose({decode_op, resize_op}); in TEST_F()
89 auto compose = transforms::Compose({decode_op, resize_op}); in TEST_F()
110 std::shared_ptr<TensorTransform> compose(new transforms::Compose({decode_op, nullptr})); in TEST_F()
131 auto compose = transforms::Compose(list); in TEST_F()
169transforms::Concatenate concatenate = transforms::Concatenate(0, prepend_MSTensor, append_MSTensor… in TEST_F()
221 transforms::Concatenate concatenate = transforms::Concatenate(); in TEST_F()
293transforms::Concatenate concatenate = transforms::Concatenate(0, prepend_MSTensor, append_MSTensor… in TEST_F()
357transforms::Concatenate concatenate = transforms::Concatenate(-1, prepend_MSTensor, append_MSTenso… in TEST_F()
422transforms::Concatenate concatenate = transforms::Concatenate(0, prepend_MSTensor, append_MSTensor… in TEST_F()
471transforms::Concatenate concatenate = transforms::Concatenate(0, prepend_MSTensor, append_MSTensor… in TEST_F()
[all …]
/third_party/node/deps/brotli/c/common/
Dtransform.h54 const uint8_t* transforms; member
65 #define BROTLI_TRANSFORM_PREFIX_ID(T, I) ((T)->transforms[((I) * 3) + 0])
66 #define BROTLI_TRANSFORM_TYPE(T, I) ((T)->transforms[((I) * 3) + 1])
67 #define BROTLI_TRANSFORM_SUFFIX_ID(T, I) ((T)->transforms[((I) * 3) + 2])
79 const BrotliTransforms* transforms, int transform_idx);

12345678910>>...22