Home
last modified time | relevance | path

Searched refs:from_json (Results 1 – 25 of 217) sorted by relevance

123456789

/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/
Dserdes.cc121 RETURN_IF_NOT_OK(ZipNode::from_json(datasets, ds)); in ConstructPipeline()
124 RETURN_IF_NOT_OK(ConcatNode::from_json(json_obj, datasets, ds)); in ConstructPipeline()
150 RETURN_IF_NOT_OK(AlbumNode::from_json(json_obj, ds)); in CreateDatasetNode()
152 RETURN_IF_NOT_OK(CelebANode::from_json(json_obj, ds)); in CreateDatasetNode()
154 RETURN_IF_NOT_OK(Cifar10Node::from_json(json_obj, ds)); in CreateDatasetNode()
156 RETURN_IF_NOT_OK(Cifar100Node::from_json(json_obj, ds)); in CreateDatasetNode()
158 RETURN_IF_NOT_OK(CLUENode::from_json(json_obj, ds)); in CreateDatasetNode()
160 RETURN_IF_NOT_OK(CocoNode::from_json(json_obj, ds)); in CreateDatasetNode()
162 RETURN_IF_NOT_OK(CSVNode::from_json(json_obj, ds)); in CreateDatasetNode()
164 RETURN_IF_NOT_OK(FlickrNode::from_json(json_obj, ds)); in CreateDatasetNode()
[all …]
/third_party/json/include/nlohmann/detail/conversions/
Dfrom_json.hpp26 void from_json(const BasicJsonType& j, typename std::nullptr_t& n) in from_json() function
66 void from_json(const BasicJsonType& j, typename BasicJsonType::boolean_t& b) in from_json() function
76 void from_json(const BasicJsonType& j, typename BasicJsonType::string_t& s) in from_json() function
92 void from_json(const BasicJsonType& j, ConstructibleStringType& s) in from_json() function
103 void from_json(const BasicJsonType& j, typename BasicJsonType::number_float_t& val) in from_json() function
109 void from_json(const BasicJsonType& j, typename BasicJsonType::number_unsigned_t& val) in from_json() function
115 void from_json(const BasicJsonType& j, typename BasicJsonType::number_integer_t& val) in from_json() function
122 void from_json(const BasicJsonType& j, EnumType& e) in from_json() function
132 void from_json(const BasicJsonType& j, std::forward_list<T, Allocator>& l) in from_json() function
149 void from_json(const BasicJsonType& j, std::valarray<T>& l) in from_json() function
[all …]
/third_party/boost/libs/hana/example/misc/
Dfrom_json.cpp42 T> from_json(std::istream& in) { in from_json() function
50 T> from_json(std::istream& in) { in from_json() function
65 T> from_json(std::istream& in) { in from_json() function
76 member = from_json<Member>(in); in from_json()
84 Xs> from_json(std::istream& in) { in from_json() function
96 element = from_json<Element>(in); in from_json()
122 auto actual = from_json<hana::tuple<Person, Car, Car>>(json); in main()
/third_party/json/test/src/
Dunit-noexcept.cpp47 void from_json(const json&, pod) noexcept;
48 void from_json(const json&, pod_bis);
51 void from_json(const json&, pod) noexcept {} in from_json() function
52 void from_json(const json&, pod_bis) {} in from_json() function
94 from_json(j2, pod());
95 from_json(j2, pod_bis());
Dunit-udt.cpp187 static void from_json(const BasicJsonType& j, age& a) in from_json() function
193 static void from_json(const BasicJsonType& j, name& n) in from_json() function
199 static void from_json(const BasicJsonType& j, country& c) in from_json() function
215 static void from_json(const BasicJsonType& j, person& p) in from_json() function
222 static void from_json(const nlohmann::json& j, address& a) in from_json() function
227 static void from_json(const nlohmann::json& j, contact& c) in from_json() function
233 static void from_json(const nlohmann::json& j, contact_book& cb) in from_json() function
370 static void from_json(const json& j, std::shared_ptr<T>& opt) in from_json() function
391 static void from_json(const json& j, udt::legacy_type& l) in from_json() function
461 static void from_json(const json&, type& opt) in from_json() function
[all …]
/third_party/json/include/nlohmann/
Dadl_serializer.hpp24 static auto from_json(BasicJsonType&& j, ValueType& val) noexcept( in from_json() function
25 noexcept(::nlohmann::from_json(std::forward<BasicJsonType>(j), val))) in from_json()
26 -> decltype(::nlohmann::from_json(std::forward<BasicJsonType>(j), val), void()) in from_json()
28 ::nlohmann::from_json(std::forward<BasicJsonType>(j), val); in from_json()
/third_party/json/doc/mkdocs/docs/features/
Darbitrary_types.md64 void from_json(const json& j, person& p) {
73 Likewise, when calling `get<your_type>()` or `get_to(your_type&)`, the `from_json` method will be c…
80 * In function `from_json`, use function [`at()`](https://nlohmann.github.io/json/classnlohmann_1_1b…
86 If you just want to serialize/deserialize some structs, the `to_json`/`from_json` functions can be …
101 The `to_json`/`from_json` functions for the `person` struct above can be created with:
141 static void from_json(const json& j, T& value) {
142 // same thing, but with the "from_json" method
165 static void from_json(const json& j, boost::optional<T>& opt) {
170 // adl_serializer<T>::from_json
179 … You will need to specialize the `adl_serializer` as well, but with a special `from_json` overload:
[all …]
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/ir/vision/
Dascend_vision_ir.h62 static Status from_json(nlohmann::json op_params, std::shared_ptr<TensorOperation> *operation);
82 static Status from_json(nlohmann::json op_params, std::shared_ptr<TensorOperation> *operation);
102 static Status from_json(nlohmann::json op_params, std::shared_ptr<TensorOperation> *operation);
145 static Status from_json(nlohmann::json op_params, std::shared_ptr<TensorOperation> *operation);
166 static Status from_json(nlohmann::json op_params, std::shared_ptr<TensorOperation> *operation);
Dascend_vision_ir.cc81 Status DvppCropJpegOperation::from_json(nlohmann::json op_params, std::shared_ptr<TensorOperation> … in from_json() function in mindspore::dataset::vision::DvppCropJpegOperation
136 Status DvppDecodeResizeOperation::from_json(nlohmann::json op_params, std::shared_ptr<TensorOperati… in from_json() function in mindspore::dataset::vision::DvppDecodeResizeOperation
245 Status DvppDecodeResizeCropOperation::from_json(nlohmann::json op_params, std::shared_ptr<TensorOpe… in from_json() function in mindspore::dataset::vision::DvppDecodeResizeCropOperation
317 Status DvppNormalizeOperation::from_json(nlohmann::json op_params, std::shared_ptr<TensorOperation>… in from_json() function in mindspore::dataset::vision::DvppNormalizeOperation
373 Status DvppResizeJpegOperation::from_json(nlohmann::json op_params, std::shared_ptr<TensorOperation… in from_json() function in mindspore::dataset::vision::DvppResizeJpegOperation
Dinvert_ir.h48 static Status from_json(nlohmann::json op_params, std::shared_ptr<TensorOperation> *operation);
/third_party/mesa3d/src/amd/registers/
Dregdb.py106 def from_json(json, keys=None): member in Object
108 return [Object.from_json(v) for v in json]
115 v = Object.from_json(v)
632 regtype = Object.from_json(Object.to_json(self.__register_types[type_ref]))
683 regmap = Object.from_json(Object.to_json(regmap))
711 regmap = Object.from_json(Object.to_json(regmap))
715 regtype = Object.from_json(Object.to_json(other.__register_types[type_ref]))
723 enum = Object.from_json(Object.to_json(other.__enums[enum_ref]))
802 def from_json(json): member in RegisterDatabase
805 db.__enums = dict((k, Object.from_json(v)) for k, v in json['enums'].items())
[all …]
Dmergedbs.py42 regdb.update(RegisterDatabase.from_json(json.load(filp)))
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/ir/datasetops/source/samplers/
Dsubset_random_sampler_ir.cc68 Status SubsetRandomSamplerObj::from_json(nlohmann::json json_obj, int64_t num_samples, in from_json() function in mindspore::dataset::SubsetRandomSamplerObj
74 RETURN_IF_NOT_OK(SamplerObj::from_json(json_obj, sampler)); in from_json()
Dsubset_sampler_ir.cc76 Status SubsetSamplerObj::from_json(nlohmann::json json_obj, int64_t num_samples, std::shared_ptr<Sa… in from_json() function in mindspore::dataset::SubsetSamplerObj
81 RETURN_IF_NOT_OK(SamplerObj::from_json(json_obj, sampler)); in from_json()
Dsequential_sampler_ir.cc65 Status SequentialSamplerObj::from_json(nlohmann::json json_obj, int64_t num_samples, in from_json() function in mindspore::dataset::SequentialSamplerObj
71 RETURN_IF_NOT_OK(SamplerObj::from_json(json_obj, sampler)); in from_json()
Drandom_sampler_ir.cc60 Status RandomSamplerObj::from_json(nlohmann::json json_obj, int64_t num_samples, std::shared_ptr<Sa… in from_json() function in mindspore::dataset::RandomSamplerObj
68 RETURN_IF_NOT_OK(SamplerObj::from_json(json_obj, sampler)); in from_json()
Dweighted_random_sampler_ir.cc67 Status WeightedRandomSamplerObj::from_json(nlohmann::json json_obj, int64_t num_samples, in from_json() function in mindspore::dataset::WeightedRandomSamplerObj
75 RETURN_IF_NOT_OK(SamplerObj::from_json(json_obj, sampler)); in from_json()
Dpk_sampler_ir.cc64 Status PKSamplerObj::from_json(nlohmann::json json_obj, int64_t num_samples, std::shared_ptr<Sample… in from_json() function in mindspore::dataset::PKSamplerObj
71 RETURN_IF_NOT_OK(SamplerObj::from_json(json_obj, sampler)); in from_json()
Ddistributed_sampler_ir.cc111 Status DistributedSamplerObj::from_json(nlohmann::json json_obj, int64_t num_samples, in from_json() function in mindspore::dataset::DistributedSamplerObj
128 RETURN_IF_NOT_OK(SamplerObj::from_json(json_obj, sampler)); in from_json()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/ir/data/
Dtransforms_ir.cc138 Status FillOperation::from_json(nlohmann::json op_params, std::shared_ptr<TensorOperation> *operati… in from_json() function in mindspore::dataset::transforms::FillOperation
140 RETURN_IF_NOT_OK(Tensor::from_json(op_params, &fill_value)); in from_json()
183 Status OneHotOperation::from_json(nlohmann::json op_params, std::shared_ptr<TensorOperation> *opera… in from_json() function in mindspore::dataset::transforms::OneHotOperation
290 Status TypeCastOperation::from_json(nlohmann::json op_params, std::shared_ptr<TensorOperation> *ope… in from_json() function in mindspore::dataset::transforms::TypeCastOperation
Dtransforms_ir.h113 static Status from_json(nlohmann::json op_params, std::shared_ptr<TensorOperation> *operation);
151 static Status from_json(nlohmann::json op_params, std::shared_ptr<TensorOperation> *operation);
256 static Status from_json(nlohmann::json op_params, std::shared_ptr<TensorOperation> *operation);
/third_party/mindspore/mindspore/dataset/transforms/
Dpy_transforms.py68 def from_json(cls, json_string): member in PyTensorOperation
80 sys.modules[json_op["python_module"]], json_op["tensor_op_name"]).from_json(
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/ir/datasetops/source/
Dcifar10_node.cc126 Status Cifar10Node::from_json(nlohmann::json json_obj, std::shared_ptr<DatasetNode> *ds) { in from_json() function in mindspore::dataset::Cifar10Node
137 RETURN_IF_NOT_OK(DatasetCache::from_json(json_obj, &cache)); in from_json()
Dcifar100_node.cc125 Status Cifar100Node::from_json(nlohmann::json json_obj, std::shared_ptr<DatasetNode> *ds) { in from_json() function in mindspore::dataset::Cifar100Node
136 RETURN_IF_NOT_OK(DatasetCache::from_json(json_obj, &cache)); in from_json()
Dmnist_node.cc119 Status MnistNode::from_json(nlohmann::json json_obj, std::shared_ptr<DatasetNode> *ds) { in from_json() function in mindspore::dataset::MnistNode
130 RETURN_IF_NOT_OK(DatasetCache::from_json(json_obj, &cache)); in from_json()

123456789