1 | /**
|
2 | * @license
|
3 | * Copyright 2018 Google LLC. All Rights Reserved.
|
4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | * you may not use this file except in compliance with the License.
|
6 | * You may obtain a copy of the License at
|
7 | *
|
8 | * http://www.apache.org/licenses/LICENSE-2.0
|
9 | *
|
10 | * Unless required by applicable law or agreed to in writing, software
|
11 | * distributed under the License is distributed on an "AS IS" BASIS,
|
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13 | * See the License for the specific language governing permissions and
|
14 | * limitations under the License.
|
15 | * =============================================================================
|
16 | */
|
17 | export const json = {
|
18 | '$schema': 'http://json-schema.org/draft-07/schema#',
|
19 | 'definitions': {
|
20 | 'OpMapper': {
|
21 | 'type': 'object',
|
22 | 'properties': {
|
23 | 'tfOpName': { 'type': 'string' },
|
24 | 'category': { '$ref': '#/definitions/Category' },
|
25 | 'inputs': {
|
26 | 'type': 'array',
|
27 | 'items': { '$ref': '#/definitions/InputParamMapper' }
|
28 | },
|
29 | 'attrs': {
|
30 | 'type': 'array',
|
31 | 'items': { '$ref': '#/definitions/AttrParamMapper' }
|
32 | },
|
33 | 'customExecutor': { '$ref': '#/definitions/OpExecutor' },
|
34 | 'outputs': { 'type': 'array' }
|
35 | },
|
36 | 'required': ['tfOpName'],
|
37 | 'additionalProperties': false
|
38 | },
|
39 | 'Category': {
|
40 | 'type': 'string',
|
41 | 'enum': [
|
42 | 'arithmetic', 'basic_math', 'control', 'convolution',
|
43 | 'custom', 'dynamic', 'evaluation', 'image',
|
44 | 'creation', 'graph', 'logical', 'matrices',
|
45 | 'normalization', 'ragged', 'reduction', 'slice_join',
|
46 | 'spectral', 'transformation', 'sparse', 'string'
|
47 | ]
|
48 | },
|
49 | 'InputParamMapper': {
|
50 | 'type': 'object',
|
51 | 'properties': {
|
52 | 'name': { 'type': 'string' },
|
53 | 'type': { '$ref': '#/definitions/ParamTypes' },
|
54 | 'defaultValue': {
|
55 | 'anyOf': [
|
56 | { 'type': 'string' }, { 'type': 'array', 'items': { 'type': 'string' } },
|
57 | { 'type': 'number' }, { 'type': 'array', 'items': { 'type': 'number' } },
|
58 | { 'type': 'boolean' }, { 'type': 'array', 'items': { 'type': 'boolean' } }
|
59 | ]
|
60 | },
|
61 | 'notSupported': { 'type': 'boolean' },
|
62 | 'start': { 'type': 'number' },
|
63 | 'end': { 'type': 'number' }
|
64 | },
|
65 | 'required': ['name', 'start', 'type'],
|
66 | 'additionalProperties': false
|
67 | },
|
68 | 'ParamTypes': {
|
69 | 'type': 'string',
|
70 | 'enum': [
|
71 | 'number', 'string', 'number[]', 'bool', 'shape', 'tensor', 'tensors',
|
72 | 'dtype', 'string[]', 'func', 'dtype[]', 'bool[]'
|
73 | ]
|
74 | },
|
75 | 'AttrParamMapper': {
|
76 | 'type': 'object',
|
77 | 'properties': {
|
78 | 'name': { 'type': 'string' },
|
79 | 'type': { '$ref': '#/definitions/ParamTypes' },
|
80 | 'defaultValue': {
|
81 | 'anyOf': [
|
82 | { 'type': 'string' }, { 'type': 'array', 'items': { 'type': 'string' } },
|
83 | { 'type': 'number' }, { 'type': 'array', 'items': { 'type': 'number' } },
|
84 | { 'type': 'boolean' }, { 'type': 'array', 'items': { 'type': 'boolean' } }
|
85 | ]
|
86 | },
|
87 | 'notSupported': { 'type': 'boolean' },
|
88 | 'tfName': { 'type': 'string' },
|
89 | 'tfDeprecatedName': { 'type': 'string' }
|
90 | },
|
91 | 'required': ['name', 'tfName', 'type'],
|
92 | 'additionalProperties': false
|
93 | },
|
94 | 'OpExecutor': { 'type': 'object', 'additionalProperties': false }
|
95 | },
|
96 | 'items': { '$ref': '#/definitions/OpMapper' },
|
97 | 'type': 'array'
|
98 | };
|
99 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3BfbWFwcGVyX3NjaGVtYS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL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wRXhlY3V0b3InfSxcbiAgICAgICAgJ291dHB1dHMnOiB7J3R5cGUnOiAnYXJyYXknfVxuICAgICAgfSxcbiAgICAgICdyZXF1aXJlZCc6IFsndGZPcE5hbWUnXSxcbiAgICAgICdhZGRpdGlvbmFsUHJvcGVydGllcyc6IGZhbHNlXG4gICAgfSxcbiAgICAnQ2F0ZWdvcnknOiB7XG4gICAgICAndHlwZSc6ICdzdHJpbmcnLFxuICAgICAgJ2VudW0nOiBbXG4gICAgICAgICdhcml0aG1ldGljJywgICAgJ2Jhc2ljX21hdGgnLCAgICAgJ2NvbnRyb2wnLCAgICAnY29udm9sdXRpb24nLFxuICAgICAgICAnY3VzdG9tJywgICAgICAgICdkeW5hbWljJywgICAgICAgICdldmFsdWF0aW9uJywgJ2ltYWdlJyxcbiAgICAgICAgJ2NyZWF0aW9uJywgICAgICAnZ3JhcGgnLCAgICAgICAgICAnbG9naWNhbCcsICAgICdtYXRyaWNlcycsXG4gICAgICAgICdub3JtYWxpemF0aW9uJywgJ3JhZ2dlZCcsICAgICAgICAgJ3JlZHVjdGlvbicsICAnc2xpY2Vfam9pbicsXG4gICAgICAgICdzcGVjdHJhbCcsICAgICAgJ3RyYW5zZm9ybWF0aW9uJywgJ3NwYXJzZScsICAgICAnc3RyaW5nJ1xuICAgICAgXVxuICAgIH0sXG4gICAgJ0lucHV0UGFyYW1NYXBwZXInOiB7XG4gICAgICAndHlwZSc6ICdvYmplY3QnLFxuICAgICAgJ3Byb3BlcnRpZXMnOiB7XG4gICAgICAgICduYW1lJzogeyd0eXBlJzogJ3N0cmluZyd9LFxuICAgICAgICAndHlwZSc6IHsnJHJlZic6ICcjL2RlZmluaXRpb25zL1BhcmFtVHlwZXMnfSxcbiAgICAgICAgJ2RlZmF1bHRWYWx1ZSc6IHtcbiAgICAgICAgICAnYW55T2YnOiBbXG4gICAgICAgICAgICB7J3R5cGUnOiAnc3RyaW5nJ30sIHsndHlwZSc6ICdhcnJheScsICdpdGVtcyc6IHsndHl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AgICAgICAnYW55T2YnOiBbXG4gICAgICAgICAgICB7J3R5cGUnOiAnc3RyaW5nJ30sIHsndHlwZSc6ICdhcnJheScsICdpdGVtcyc6IHsndHlwZSc6ICdzdHJpbmcnfX0sXG4gICAgICAgICAgICB7J3R5cGUnOiAnbnVtYmVyJ30sIHsndHlwZSc6ICdhcnJheScsICdpdGVtcyc6IHsndHlwZSc6ICdudW1iZXInfX0sXG4gICAgICAgICAgICB7J3R5cGUnOiAnYm9vbGVhbid9LCB7J3R5cGUnOiAnYXJyYXknLCAnaXRlbXMnOiB7J3R5cGUnOiAnYm9vbGVhbid9fVxuICAgICAgICAgIF1cbiAgICAgICAgfSxcbiAgICAgICAgJ25vdFN1cHBvcnRlZCc6IHsndHlwZSc6ICdib29sZWFuJ30sXG4gICAgICAgICd0Zk5hbWUnOiB7J3R5cGUnOiAnc3RyaW5nJ30sXG4gICAgICAgICd0ZkRlcHJlY2F0ZWROYW1lJzogeyd0eXBlJzogJ3N0cmluZyd9XG4gICAgICB9LFxuICAgICAgJ3JlcXVpcmVkJzogWyduYW1lJywgJ3RmTmFtZScsICd0eXBlJ10sXG4gICAgICAnYWRkaXRpb25hbFByb3BlcnRpZXMnOiBmYWxzZVxuICAgIH0sXG4gICAgJ09wRXhlY3V0b3InOiB7J3R5cGUnOiAnb2JqZWN0JywgJ2FkZGl0aW9uYWxQcm9wZXJ0aWVzJzogZmFsc2V9XG4gIH0sXG4gICdpdGVtcyc6IHsnJHJlZic6ICcjL2RlZmluaXRpb25zL09wTWFwcGVyJ30sXG4gICd0eXBlJzogJ2FycmF5J1xufTtcbiJdfQ== |
\ | No newline at end of file |