/third_party/mindspore/tests/ut/python/dataset/ |
D | test_save_op.py | 100 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 …]
|
D | test_repeat.py | 170 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]]))
|
D | test_minddataset.py | 1218 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 …]
|
D | test_datasets_flowers102.py | 55 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]
|
D | test_datasets_usps.py | 46 images = np.asarray(tmp_list, dtype=np.float32).reshape((-1, 16, 16, 1))
|
D | test_datasets_sbu.py | 49 images.append(np.asarray(Image.open(filename).convert('RGB')).astype(np.uint8))
|
/third_party/mindspore/tests/st/model_zoo_tests/DeepFM/ |
D | process_data.py | 177 …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/ |
D | logic_ops.py | 23 from .array_creations import zeros, ones, empty, asarray 776 a1 = asarray(a1) 777 a2 = asarray(a2) 818 a1 = asarray(a1) 819 a2 = asarray(a2)
|
D | array_creations.py | 88 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__.py | 37 from .array_creations import (array, asarray, asfarray, ones, zeros, full, arange,
|
/third_party/mindspore/mindspore/nn/metrics/ |
D | hausdorff_distance.py | 41 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)
|
D | auc.py | 96 x = np.asarray(x)
|
/third_party/mindspore/tests/st/numpy_native/ |
D | test_array_creations.py | 123 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 …]
|
D | utils.py | 25 actual = onp.asarray(actual) 28 expected = onp.asarray(expected)
|
D | test_math_ops.py | 951 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/ |
D | dataset.py | 180 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/ |
D | tfrecord_to_mr.py | 236 … 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.py | 304 array = np.asarray(image).astype(np.float32) / 255
|
/third_party/mindspore/mindspore/dataset/transforms/ |
D | c_transforms.py | 38 tensor_row.append(cde.Tensor(np.asarray(tensor)))
|
/third_party/mindspore/mindspore/dataset/vision/ |
D | py_transforms_util.py | 145 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.py | 172 a = np.asarray(a)
|
/third_party/mindspore/mindspore/dataset/engine/ |
D | datasets.py | 5876 image = np.asarray(Image.open(image_path).convert("RGB")) 5888 segmentation = np.asarray(Image.open(segmentation_path).convert("RGB"))
|
/third_party/mindspore/ |
D | RELEASE.md | 757 ###### `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]])
|