Home
last modified time | relevance | path

Searched refs:asarray (Results 1 – 23 of 23) sorted by relevance

/third_party/mindspore/tests/ut/python/dataset/
Dtest_save_op.py100 new_data['image1'] = np.asarray(list(item["image1"]), dtype=np.uint8)
101 new_data['image2'] = np.asarray(list(item["image2"]), dtype=np.uint8)
102 new_data['image3'] = np.asarray(list(item["image3"]), dtype=np.uint8)
103 new_data['image4'] = np.asarray(list(item["image4"]), dtype=np.uint8)
104 new_data['image5'] = np.asarray(list(item["image5"]), dtype=np.uint8)
146 new_data['file_name'] = np.asarray(item["file_name"], dtype='S')
147 new_data['label'] = np.asarray(list([item["label"]]), dtype=np.int32)
272 new_data['file_name'] = np.asarray(item["file_name"], dtype='S')
279 new_data['label'] = np.asarray(list([item["label"]]), dtype=np.int32)
280 new_data['image1'] = np.asarray(list(item["image1"]), dtype=np.uint8)
[all …]
Dtest_repeat.py170 np.testing.assert_array_equal(d[0].asnumpy(), np.asarray([[0], [1], [2]]))
183 np.testing.assert_array_equal(d[0].asnumpy(), np.asarray([[0], [1], [2]]))
196 np.testing.assert_array_equal(d[0].asnumpy(), np.asarray([[0], [1], [2]]))
210 np.testing.assert_array_equal(d[0].asnumpy(), np.asarray([[0], [1]]))
212 np.testing.assert_array_equal(d[0].asnumpy(), np.asarray([[2]]))
Dtest_minddataset.py1218 new_data['file_name'] = np.asarray(item["file_name"], dtype='S')
1219 new_data['label'] = np.asarray(list([item["label"]]), dtype=np.int32)
1220 new_data['image1'] = np.asarray(list(item["image1"]), dtype=np.uint8)
1221 new_data['image2'] = np.asarray(list(item["image2"]), dtype=np.uint8)
1222 new_data['image3'] = np.asarray(list(item["image3"]), dtype=np.uint8)
1223 new_data['image4'] = np.asarray(list(item["image4"]), dtype=np.uint8)
1224 new_data['image5'] = np.asarray(list(item["image5"]), dtype=np.uint8)
1427 new_data['file_name'] = np.asarray(item["file_name"], dtype='S')
1428 new_data['label'] = np.asarray(list([item["label"]]), dtype=np.int32)
1429 new_data['image1'] = np.asarray(list(item["image1"]), dtype=np.uint8)
[all …]
Dtest_datasets_flowers102.py55 images = [np.asarray(Image.open(path).convert("RGB")) for path in image_paths]
56 segmentations = [np.asarray(Image.open(path).convert("RGB")) for path in segmentation_paths]
Dtest_datasets_usps.py46 images = np.asarray(tmp_list, dtype=np.float32).reshape((-1, 16, 16, 1))
Dtest_datasets_sbu.py49 images.append(np.asarray(Image.open(filename).convert('RGB')).astype(np.uint8))
/third_party/mindspore/tests/st/model_zoo_tests/DeepFM/
Dprocess_data.py177 …pd.DataFrame(np.asarray(train_feature_list)).to_hdf(train_feature_file_name.format(train_part_numb…
179 … pd.DataFrame(np.asarray(train_label_list)).to_hdf(train_label_file_name.format(train_part_number),
185 …pd.DataFrame(np.asarray(test_feature_list)).to_hdf(test_feature_file_name.format(test_part_number),
187 … pd.DataFrame(np.asarray(test_label_list)).to_hdf(test_label_file_name.format(test_part_number),
194 …pd.DataFrame(np.asarray(train_feature_list)).to_hdf(train_feature_file_name.format(train_part_numb…
196 … pd.DataFrame(np.asarray(train_label_list)).to_hdf(train_label_file_name.format(train_part_number),
200 …pd.DataFrame(np.asarray(test_feature_list)).to_hdf(test_feature_file_name.format(test_part_number),
202 …pd.DataFrame(np.asarray(test_label_list)).to_hdf(test_label_file_name.format(test_part_number), ke…
/third_party/mindspore/mindspore/numpy/
Dlogic_ops.py23 from .array_creations import zeros, ones, empty, asarray
776 a1 = asarray(a1)
777 a2 = asarray(a2)
818 a1 = asarray(a1)
819 a2 = asarray(a2)
Darray_creations.py88 res = asarray(obj, dtype)
119 a = onp.asarray(a)
140 def asarray(a, dtype=None): function
186 a = onp.asarray(a)
224 return asarray(a)
261 a = asarray(a)
2018 arr = asarray(arr)
2050 arr = asarray(arr)
D__init__.py37 from .array_creations import (array, asarray, asfarray, ones, zeros, full, arange,
/third_party/mindspore/mindspore/nn/metrics/
Dhausdorff_distance.py41 roi_center = np.asarray(roi_center, dtype=np.int16)
42 roi_size = np.asarray(roi_size, dtype=np.int16)
49 self.roi_start = np.maximum(np.asarray(roi_start, dtype=np.int16), 0)
50 self.roi_end = np.maximum(np.asarray(roi_end, dtype=np.int16), self.roi_start)
Dauc.py96 x = np.asarray(x)
/third_party/mindspore/tests/st/numpy_native/
Dtest_array_creations.py123 actual = onp.asarray(array)
124 expected = mnp.asarray(array).asnumpy()
136 actual = onp.asarray(array, test_case.onp_dtypes[i])
137 expected = mnp.asarray(array, test_case.mnp_dtypes[i]).asnumpy()
144 actual = onp.asarray(onp_input)
145 expected = mnp.asarray(mnp_input).asnumpy()
160 arr1 = mnp.asarray(array)
163 arr4 = mnp.asarray(array, dtype='int32')
164 arr5 = mnp.asarray(arr4, dtype=mnp.int32)
861 t = mnp.asarray(rand_int(m, n).tolist())
[all …]
Dutils.py25 actual = onp.asarray(actual)
28 expected = onp.asarray(expected)
Dtest_math_ops.py951 a = onp.clip(x, onp.asarray(10.0), onp.asarray([2,]))
953 c = onp.clip(x, onp.asarray(0), onp.asarray(10), dtype=onp.float32)
954 d = x.clip(onp.asarray(10.0), onp.asarray([2,]))
956 f = x.clip(onp.asarray(0), onp.asarray(10), dtype=onp.float32)
/third_party/mindspore/tests/st/fl/cross_silo_faster_rcnn/src/
Ddataset.py180 img_shape = np.asarray(img_shape, dtype=np.float32)
199 img_shape = np.asarray(img_shape, dtype=np.float32)
212 img_shape = np.asarray(img_shape, dtype=np.float32)
230 img_shape = np.asarray(img_shape, dtype=np.float32)
/third_party/mindspore/mindspore/mindrecord/tools/
Dtfrecord_to_mr.py236 … np.asarray(val, _cast_string_type_to_np_type(self.mindrecord_schema[cast_key]["type"]))
257 … np.asarray(val, _cast_string_type_to_np_type(self.mindrecord_schema[cast_key]["type"]))
/third_party/mindspore/mindspore/explainer/
D_utils.py304 array = np.asarray(image).astype(np.float32) / 255
/third_party/mindspore/mindspore/dataset/transforms/
Dc_transforms.py38 tensor_row.append(cde.Tensor(np.asarray(tensor)))
/third_party/mindspore/mindspore/dataset/vision/
Dpy_transforms_util.py145 img = np.asarray(img)
896 img = np.asarray(img)
902 img = np.asarray(img)
/third_party/mindspore/mindspore/ops/composite/multitype_ops/
D_constexpr_utils.py172 a = np.asarray(a)
/third_party/mindspore/mindspore/dataset/engine/
Ddatasets.py5876 image = np.asarray(Image.open(image_path).convert("RGB"))
5888 segmentation = np.asarray(Image.open(segmentation_path).convert("RGB"))
/third_party/mindspore/
DRELEASE.md757 ###### `mindspore.numpy.array()`, `mindspore.numpy.asarray()`, `mindspore.numpy.asfarray()`, `minds…
774 >>> tensor = mnp.asarray(nd_array) # this line cannot be parsed in GRAPH mode
784 >>> tensor = mnp.asarray([1,2,3]) # this line can be parsed in GRAPH mode
808 >>> where = np.asarray([[True, False, True],[False, False, True],[True, True, True]])
821 >>> where = np.asarray([[True, False, True],[False, False, True],[True, True, True]])