Home
last modified time | relevance | path

Searched +full:json +full:- +full:schema (Results 1 – 25 of 353) sorted by relevance

12345678910>>...15

/third_party/vk-gl-cts/external/vulkan-docs/src/json/
Dvkpcc.json2 "$schema": "http://json-schema.org/draft-04/schema#",
3 "id": "https://schema.khronos.org/vulkan/vkpcc.json#",
4 "title": "JSON schema for Vulkan pipeline state",
5 "description": "Schema for representing Vulkan pipeline state for use with the offline Pipeline Cac…
19 …"Renderpass": {"$ref": "https://schema.khronos.org/vulkan/vk.json#/definitions/VkRenderPassCreateI…
20 …"Renderpass2": {"$ref": "https://schema.khronos.org/vulkan/vk.json#/definitions/VkRenderPassCreate…
21 …"object", "patternProperties": {"^\\w+$": {"$ref": "https://schema.khronos.org/vulkan/vk.json#/def…
22 …"object", "patternProperties": {"^\\w+$": {"$ref": "https://schema.khronos.org/vulkan/vk.json#/def…
23 …"object", "patternProperties": {"^\\w+$": {"$ref": "https://schema.khronos.org/vulkan/vk.json#/def…
24 …"PipelineLayout": {"$ref": "https://schema.khronos.org/vulkan/vk.json#/definitions/VkPipelineLayou…
[all …]
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/
Djson_validate.py1 #!/usr/bin/python3 -i
3 # Copyright 2020-2024 The Khronos Group Inc.
5 # SPDX-License-Identifier: Apache-2.0
8 # -----------
9 # This script validates a json pipeline file against the schema files.
14 import json
17 base_schema_filename = os.path.join("..", "json", "vk.json")
18 vkpcc_schema_filename = os.path.join("..", "json", "vkpcc.json")
23 parser.add_argument('json_file', help='The json file to validate')
32 # Exit with error if json or schema files do not exist
[all …]
/third_party/mindspore/mindspore-src/source/mindspore/ccsrc/minddata/mindrecord/meta/
Dshard_schema.cc8 * http://www.apache.org/licenses/LICENSE-2.0
22 std::shared_ptr<Schema> Schema::Build(std::string desc, const json &schema) { in Build() argument
24 if (!Validate(schema)) { in Build()
28 std::vector<std::string> blob_fields = PopulateBlobFields(schema); in Build()
29 Schema object_schema; in Build()
32 object_schema.schema_ = schema; in Build()
33 object_schema.schema_id_ = -1; in Build()
34 return std::make_shared<Schema>(object_schema); in Build()
37 std::string Schema::GetDesc() const { return desc_; } in GetDesc()
39 json Schema::GetSchema() const { in GetSchema()
[all …]
Dshard_header.cc8 * http://www.apache.org/licenses/LICENSE-2.0
37 Status ShardHeader::InitializeHeader(const std::vector<json> &headers, bool load_dataset) { in InitializeHeader()
44 RETURN_IF_NOT_OK_MR(ParseSchema(header["schema"])); in InitializeHeader()
87 Status ShardHeader::ValidateHeader(const std::string &path, std::shared_ptr<json> *header_ptr) { in ValidateHeader()
97 json json_header; in ValidateHeader()
130 // parse json content in ValidateHeader()
132 json_header = json::parse(raw_header_content); in ValidateHeader()
133 } catch (json::parse_error &e) { in ValidateHeader()
137 *header_ptr = std::make_shared<json>(json_header); in ValidateHeader()
141 Status ShardHeader::BuildSingleHeader(const std::string &file_path, std::shared_ptr<json> *header_p… in BuildSingleHeader()
[all …]
/third_party/mindspore/mindspore-src/source/mindspore/ccsrc/minddata/mindrecord/include/
Dshard_schema.h8 * http://www.apache.org/licenses/LICENSE-2.0
34 class MINDRECORD_API Schema {
36 ~Schema() = default;
38 /// \brief obtain the json schema ,its description, its block fields
39 /// \param[in] desc the description of the schema
40 /// \param[in] schema the schema's json
41 static std::shared_ptr<Schema> Build(std::string desc, const json &schema);
43 /// \brief compare two schema to judge if they are equal
44 /// \param b another schema to be judged
46 bool operator==(const Schema &b) const;
[all …]
Dshard_header.h8 * http://www.apache.org/licenses/LICENSE-2.0
43 static Status BuildSingleHeader(const std::string &file_path, std::shared_ptr<json> *header_ptr);
44 /// \brief add the schema and save it
45 /// \param[in] schema the schema needs to be added
46 /// \return the last schema's id
47 int AddSchema(std::shared_ptr<Schema> schema);
54 /// \brief create index and add fields which from schema for each schema
61 /// \brief get the schema
62 /// \return the schema
63 std::vector<std::shared_ptr<Schema>> GetSchemas();
[all …]
/third_party/mindspore/mindspore-src/source/mindspore/ccsrc/minddata/dataset/engine/
Ddata_schema.cc2 * Copyright 2020-2024 Huawei Technologies Co., Ltd
8 * http://www.apache.org/licenses/LICENSE-2.0
23 #include <nlohmann/json.hpp>
65 if (in_shape != nullptr && in_shape->known() && in_shape->Size() != rank_) { in ColDescriptor()
66 rank_ = in_shape->Size(); in ColDescriptor()
116 if (this->Rank() == 0 && num_elements == 1) { in MaterializeTensorShape()
128 std::vector<dsize_t> requested_shape = tensor_shape_->AsVector(); in MaterializeTensorShape()
183 const char DataSchema::DEFAULT_DATA_SCHEMA_FILENAME[] = "datasetSchema.json";
188 // Internal helper function. Parses the json schema file in any order and produces a schema that
189 // does not follow any particular order (json standard does not enforce any ordering protocol).
[all …]
Ddata_schema.h2 * Copyright 2020-2024 Huawei Technologies Co., Ltd
8 * http://www.apache.org/licenses/LICENSE-2.0
25 #include <nlohmann/json.hpp>
41 /// \param[in] col_name - The name of the column
42 /// \param[in] col_type - The DE Datatype of the column
43 /// \param[in] tensor_impl - The (initial) type of tensor implementation for the column
44 /// \param[in] rank - The number of dimension of the data
45 /// \param[in] in_shape - option argument for input shape
50 /// \param[in] in_cd - the source ColDescriptor
54 /// \param in_cd - the source ColDescriptor
[all …]
/third_party/vk-gl-cts/external/vulkan-docs/src/config/vu-to-json/
Dextension.rb1 # Copyright 2016-2024 The Khronos Group Inc.
3 # SPDX-License-Identifier: Apache-2.0
11 require 'json'
17 'schema version' => 2,
31 # Use find_by so that sub-blocks that this script processes can be skipped
35 # See https://discuss.asciidoctor.org/asciidoctorj-and-document-attributes-tp5960p6525.html
58 match = /<a id=\"(VUID-[^"]+)\"[^>]*><\/a>(.*)/m.match(item.text)
81 # For legacy schema reasons, put everything in "core" entry section
92 …puts "VU Extraction Treeprocessor: ERROR - Valid Usage statement '#{entry}' is duplicated in the s…
98 … puts "VU Extraction Treeprocessor: WARNING - Valid Usage statement without a VUID found: "
[all …]
/third_party/mindspore/mindspore-src/source/tests/ut/cpp/mindrecord/
Dut_shard_schema_test.cc8 * http://www.apache.org/licenses/LICENSE-2.0
38 using json = nlohmann::json; typedef
57 MS_LOG(INFO) << FormatInfo("Test ShardSchema: build schema"); in TEST_F()
60 json schema_content = R"({"name": {"type": "string"}, in TEST_F()
61 "label": {"type": "int32", "shape": [-1]}})"_json; in TEST_F()
63 std::shared_ptr<Schema> schema = Schema::Build(desc, schema_content); in TEST_F() local
64 ASSERT_NE(schema, nullptr); in TEST_F()
68 schema = Schema::Build(desc, schema_content); in TEST_F()
69 ASSERT_EQ(schema, nullptr); in TEST_F()
72 schema_content["na-me"] = R"({"type": "string"})"_json; in TEST_F()
[all …]
Dut_shard_writer_test.cc8 * http://www.apache.org/licenses/LICENSE-2.0
93 std::vector<json> json_buffer1; // store the image_raw_meta.data in TEST_F()
94 std::vector<json> json_buffer3; // store the pictures in TEST_F()
95 std::vector<json> json_buffer4; // store the statistics data in TEST_F()
115 // create schema in TEST_F()
116 json image_schema_json = R"({"name":{"type":"string"}})"_json; in TEST_F()
117json anno_schema_json = R"({"name":{"type":"string"},"anno_tool":{"type":"string"},"creation_time"… in TEST_F()
121 …std::shared_ptr<mindrecord::Schema> image_schema = mindrecord::Schema::Build("picture", image_sche… in TEST_F()
123 MS_LOG(ERROR) << "Build image schema failed"; in TEST_F()
127 // add schema to shardHeader in TEST_F()
[all …]
Dut_shard.cc8 * http://www.apache.org/licenses/LICENSE-2.0
43 MS_LOG(INFO) << FormatInfo("Test schema"); in TEST_F()
45 // read schema json from schema dir in TEST_F()
46 nlohmann::json j = nlohmann::json::parse(kCvatSchema); in TEST_F()
49 std::shared_ptr<Schema> schema = Schema::Build(desc, j); in TEST_F() local
50 ASSERT_TRUE(schema != nullptr); in TEST_F()
51 MS_LOG(INFO) << "schema description: " << schema->GetDesc() << ", schema: " << in TEST_F()
52 common::SafeCStr(schema->GetSchema().dump()); in TEST_F()
67 nlohmann::json statistic_json = json::parse(kStatistics[2]); in TEST_F()
70 MS_LOG(INFO) << "test get_desc(), result: " << statistics->GetDesc(); in TEST_F()
[all …]
Dut_common.cc8 * http://www.apache.org/licenses/LICENSE-2.0
47 int padding_length = static_cast<int>(message_total_length - part_message.length()); in FormatInfo()
53 void LoadData(const std::string &directory, std::vector<json> &json_buffer, const int max_num) { in LoadData()
64 json j = json::parse(temp); in LoadData()
70 void LoadDataFromImageNet(const std::string &directory, std::vector<json> &json_buffer, const int m… in LoadDataFromImageNet()
81 json j; in LoadDataFromImageNet()
100 return -1; in Img2DataUint8()
118 return -1; in GetAbsoluteFiles()
124 if ((strcmp(d_ent->d_name, dot) != 0) && (strcmp(d_ent->d_name, dotdot) != 0)) { in GetAbsoluteFiles()
125 if (d_ent->d_type == DT_DIR) { in GetAbsoluteFiles()
[all …]
/third_party/flatbuffers/scripts/
Dgenerate_code.py9 # http://www.apache.org/licenses/LICENSE-2.0
32 # Generate the code for flatbuffers reflection schema
34 full_options = ["--no-prefix"] + options
39 schema="reflection.fbs",
50 def flatc_annotate(schema, file, include=None, cwd=tests_path): argument
53 cmd += ["-I"] + [include]
54 cmd += ["--annotate", schema, file]
64 BASE_OPTS = ["--reflect-names", "--gen-mutable", "--gen-object-api"]
65 NO_INCL_OPTS = BASE_OPTS + ["--no-includes"]
68 CS_OPTS = ["--csharp", "--cs-gen-json-serializer"]
[all …]
/third_party/flatbuffers/docs/source/
DCompiler.md1 Using the schema compiler {#flatbuffers_guide_using_schema_compiler}
6 flatc [ GENERATOR OPTIONS ] [ -o PATH ] [ -I PATH ] FILES...
7 [ -- FILES...]
11 the most recent schema specified.
13 `--` indicates that the following files are binary files in
14 FlatBuffer format conforming to the schema indicated before it.
19 For any schema input files, one or more generators can be specified:
21 - `--cpp`, `-c` : Generate a C++ header for all definitions in this file (as
24 - `--java`, `-j` : Generate Java code.
26 - `--kotlin` , `--kotlin-kmp` : Generate Kotlin code.
[all …]
DSchemas.md1 Writing a schema {#flatbuffers_guide_writing_schema}
4 The syntax of the schema language (aka IDL, [Interface Definition Language][])
44 optionally a default value. If the default value is not specified in the schema,
53 - You can add new fields in the schema ONLY at the end of a table
58 schema, you can manually assign ids (much like Protocol Buffers),
61 - You cannot delete fields you don't use anymore from the schema,
69 - You may change field names and table names, if you're ok with your
72 See "Schema evolution examples" below for more on this
82 tables and are even faster to access (they are always stored in-line in their
87 Built-in scalar types are
[all …]
/third_party/mindspore/mindspore-src/source/mindspore/ccsrc/minddata/dataset/engine/datasetops/source/
Dalbum_op.h2 * Copyright 2020-2022 Huawei Technologies Co., Ltd
8 * http://www.apache.org/licenses/LICENSE-2.0
54 /// \param[in] num_wkrs - Num of workers reading images in parallel
55 /// \param[in] file_dir - directory of Album
56 /// \param[in] queue_size - connector size
57 /// \param[in] do_decode - decode image files
58 /// \param[in] exts - set of file extensions to read, if empty, read everything under the dir
59 /// \param[in] data_schema - schema of dataset
60 /// \param[in] sampler - sampler tells AlbumOp what to read
74 /// \return bool - if file is bad then return false
[all …]
/third_party/flatbuffers/samples/
Dsample_text.lobster7 // http://www.apache.org/licenses/LICENSE-2.0
18 // Example how to interop with JSON.
20 // Test loading some JSON, converting it to a binary FlatBuffer and back again.
22 // First read the schema and JSON data.
23 let schema = read_file("monster.fbs", true)
24 let json = read_file("monsterdata.json", true)
25 assert schema and json
27 // Parse JSON to binary:
28 let fb, err1 = flatbuffers_json_to_binary(schema, json, [])
35 // Convert binary back to JSON:
[all …]
/third_party/mindspore/mindspore-src/source/mindspore/lite/minddata/wrapper/
Dalbum_op_android.h8 * http://www.apache.org/licenses/LICENSE-2.0
48 /// \param[in] file_dir - directory of Album
49 /// \param[in] do_decode - decode image files
50 /// \param[in] schema_file - schema file
51 /// \param[in] column_names - column name
52 /// \param[in] exts - set of file extensions to read, if empty, read everything under the dir
57 /// \param[in] file_dir - directory of Album
58 /// \param[in] do_decode - decode image files
59 /// \param[in] schema_file - schema file
60 /// \param[in] column_names - column name
[all …]
/third_party/mbedtls/scripts/
Dgenerate_driver_wrappers.py10 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
14 import json
29 def __init__(self, message="Json Validation Failed"):
40 def render(template_path: str, driver_jsoncontext: list) -> str:
42 Render template from the input file and driver JSON.
54 driver_jsoncontext: list) -> None:
65 encoding='UTF-8') as out_file:
69 def validate_json(driverjson_data: Driver, driverschema_list: dict) -> None:
71 Validate the Driver JSON against an appropriate schema
72 the schema passed could be that matching an opaque/ transparent driver.
[all …]
/third_party/flatbuffers/CMake/
DBuildFlatBuffers.cmake7 # http://www.apache.org/licenses/LICENSE-2.0
18 # flatbuffers_schemas: A list of flatbuffer schema files to process.
20 # schema_include_dirs: A list of schema file include directories, which will be
21 # passed to flatc via the -I parameter.
38 # binary_schemas_dir: If you specify an optional binary schema directory, binary
43 # all schema include directories) copied into a directory (for example, if you
44 # need them within your project to build JSON files), you can specify that
69 set(FLATC_SCHEMA_ARGS --gen-mutable)
84 set(include_params -I ${include_dir} ${include_params})
94 foreach(schema ${flatbuffers_schemas})
[all …]
/third_party/flatbuffers/tests/
Dfuzz_test.cpp26 T read = table->GetField(voffset, static_cast<T>(0)); in CompareTableFieldValue()
38 const int8_t char_val = -127; // 0x81 in FuzzTest1()
40 const int16_t short_val = -32222; // 0x8222; in FuzzTest1()
92 auto table = reinterpret_cast<flatbuffers::Table *>(eob - objects[i]); in FuzzTest1()
113 // High level stress/fuzz test: generate a big schema and
114 // matching json data in random combinations, then parse both,
115 // generate json back from the binary, and compare with the original.
126 std::string schema = "namespace test;\n\n"; in FuzzTest2() local
131 // Since we're generating schema and corresponding data in tandem, in FuzzTest2()
143 // clang-format off in FuzzTest2()
[all …]
/third_party/libwebsockets/minimal-examples/api-tests/api-test-lws_struct-json/
Dmain.c2 * lws-api-test-lws_struct-json
4 * Written in 2010-2020 by Andy Green <andy@warmcat.com>
10 * linked-lists in a standardized way that's very modest on memory but
13 * The API test shows how to serialize and deserialize a struct with a linked-
14 * list of child structs in JSON using lws_struct APIs.
68 * We read the JSON config using lws_struct... instrument the related structures
107 LSM_SCHEMA (sai_jig_t, NULL, lsm_sai_jig, "sai-jig"),
112 "\"schema\": \"sai-jig\","
116 "\"name\": \"linkit-7697-1\","
161 * in this example, the JSON is for one "builder" object, which may specify
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/utils/vscode/
Dinstall.bat7 @REM http://www.apache.org/licenses/LICENSE-2.0
15 @set EXT_PATH=%userprofile%\.vscode\extensions\google.spirvls-0.0.1
18 …ROOT_PATH%\src\tools\gen-grammar.go --cache %ROOT_PATH%\cache --template %ROOT_PATH%\spirv.json.tm…
19 …%\src\tools\gen-grammar.go --cache %ROOT_PATH%\cache --template %ROOT_PATH%\src\schema\schema.go.t…
21 if not exist %EXT_PATH% mkdir -p %EXT_PATH%
23 copy %ROOT_PATH%\package.json %EXT_PATH%
24 copy %ROOT_PATH%\spirv.json %EXT_PATH%
26 go build -o %EXT_PATH%\langsvr.exe %ROOT_PATH%\src\langsvr.go
/third_party/spirv-tools/utils/vscode/
Dinstall.bat7 @REM http://www.apache.org/licenses/LICENSE-2.0
15 @set EXT_PATH=%userprofile%\.vscode\extensions\google.spirvls-0.0.1
18 …ROOT_PATH%\src\tools\gen-grammar.go --cache %ROOT_PATH%\cache --template %ROOT_PATH%\spirv.json.tm…
19 …%\src\tools\gen-grammar.go --cache %ROOT_PATH%\cache --template %ROOT_PATH%\src\schema\schema.go.t…
21 if not exist %EXT_PATH% mkdir -p %EXT_PATH%
23 copy %ROOT_PATH%\package.json %EXT_PATH%
24 copy %ROOT_PATH%\spirv.json %EXT_PATH%
26 go build -o %EXT_PATH%\langsvr.exe %ROOT_PATH%\src\langsvr.go

12345678910>>...15