UNPKG

6.27 kBSource Map (JSON)View Raw
1{"version":3,"file":"op_mapper_schema.js","sourceRoot":"","sources":["../../src/operations/op_mapper_schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,SAAS,EAAE,yCAAyC;IACpD,aAAa,EAAE;QACb,UAAU,EAAE;YACV,MAAM,EAAE,QAAQ;YAChB,YAAY,EAAE;gBACZ,UAAU,EAAE,EAAC,MAAM,EAAE,QAAQ,EAAC;gBAC9B,UAAU,EAAE,EAAC,MAAM,EAAE,wBAAwB,EAAC;gBAC9C,QAAQ,EAAE;oBACR,MAAM,EAAE,OAAO;oBACf,OAAO,EAAE,EAAC,MAAM,EAAE,gCAAgC,EAAC;iBACpD;gBACD,OAAO,EAAE;oBACP,MAAM,EAAE,OAAO;oBACf,OAAO,EAAE,EAAC,MAAM,EAAE,+BAA+B,EAAC;iBACnD;gBACD,gBAAgB,EAAE,EAAC,MAAM,EAAE,0BAA0B,EAAC;gBACtD,SAAS,EAAE,EAAC,MAAM,EAAE,OAAO,EAAC;aAC7B;YACD,UAAU,EAAE,CAAC,UAAU,CAAC;YACxB,sBAAsB,EAAE,KAAK;SAC9B;QACD,UAAU,EAAE;YACV,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE;gBACN,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,QAAQ;gBAC9D,SAAS,EAAE,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS;gBAChE,UAAU,EAAE,eAAe,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU;gBAClE,gBAAgB,EAAE,QAAQ,EAAE,QAAQ;aACrC;SACF;QACD,kBAAkB,EAAE;YAClB,MAAM,EAAE,QAAQ;YAChB,YAAY,EAAE;gBACZ,MAAM,EAAE,EAAC,MAAM,EAAE,QAAQ,EAAC;gBAC1B,MAAM,EAAE,EAAC,MAAM,EAAE,0BAA0B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,EAAC,MAAM,EAAE,QAAQ,EAAC,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,EAAC,MAAM,EAAE,QAAQ,EAAC,EAAC;wBAClE,EAAC,MAAM,EAAE,SAAS,EAAC,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,EAAC,MAAM,EAAE,SAAS,EAAC,EAAC;qBACrE;iBACF;gBACD,cAAc,EAAE,EAAC,MAAM,EAAE,SAAS,EAAC;gBACnC,QAAQ,EAAE,EAAC,MAAM,EAAE,QAAQ,EAAC;gBAC5B,kBAAkB,EAAE,EAAC,MAAM,EAAE,QAAQ,EAAC;aACvC;YACD,UAAU,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC;YACtC,sBAAsB,EAAE,KAAK;SAC9B;QACD,YAAY,EAAE,EAAC,MAAM,EAAE,QAAQ,EAAE,sBAAsB,EAAE,KAAK,EAAC;KAChE;IACD,OAAO,EAAE,EAAC,MAAM,EAAE,wBAAwB,EAAC;IAC3C,MAAM,EAAE,OAAO;CAChB,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2018 Google LLC. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * =============================================================================\n */\n\nexport const json = {\n '$schema': 'http://json-schema.org/draft-07/schema#',\n 'definitions': {\n 'OpMapper': {\n 'type': 'object',\n 'properties': {\n 'tfOpName': {'type': 'string'},\n 'category': {'$ref': '#/definitions/Category'},\n 'inputs': {\n 'type': 'array',\n 'items': {'$ref': '#/definitions/InputParamMapper'}\n },\n 'attrs': {\n 'type': 'array',\n 'items': {'$ref': '#/definitions/AttrParamMapper'}\n },\n 'customExecutor': {'$ref': '#/definitions/OpExecutor'},\n 'outputs': {'type': 'array'}\n },\n 'required': ['tfOpName'],\n 'additionalProperties': false\n },\n 'Category': {\n 'type': 'string',\n 'enum': [\n 'arithmetic', 'basic_math', 'control', 'convolution', 'custom',\n 'dynamic', 'evaluation', 'image', 'creation', 'graph', 'logical',\n 'matrices', 'normalization', 'reduction', 'slice_join', 'spectral',\n 'transformation', 'sparse', 'string'\n ]\n },\n 'InputParamMapper': {\n 'type': 'object',\n 'properties': {\n 'name': {'type': 'string'},\n 'type': {'$ref': '#/definitions/ParamTypes'},\n 'defaultValue': {\n 'anyOf': [\n {'type': 'string'}, {'type': 'array', 'items': {'type': 'string'}},\n {'type': 'number'}, {'type': 'array', 'items': {'type': 'number'}},\n {'type': 'boolean'}, {'type': 'array', 'items': {'type': 'boolean'}}\n ]\n },\n 'notSupported': {'type': 'boolean'},\n 'start': {'type': 'number'},\n 'end': {'type': 'number'}\n },\n 'required': ['name', 'start', 'type'],\n 'additionalProperties': false\n },\n 'ParamTypes': {\n 'type': 'string',\n 'enum': [\n 'number', 'string', 'number[]', 'bool', 'shape', 'tensor', 'tensors',\n 'dtype', 'string[]', 'func', 'dtype[]', 'bool[]'\n ]\n },\n 'AttrParamMapper': {\n 'type': 'object',\n 'properties': {\n 'name': {'type': 'string'},\n 'type': {'$ref': '#/definitions/ParamTypes'},\n 'defaultValue': {\n 'anyOf': [\n {'type': 'string'}, {'type': 'array', 'items': {'type': 'string'}},\n {'type': 'number'}, {'type': 'array', 'items': {'type': 'number'}},\n {'type': 'boolean'}, {'type': 'array', 'items': {'type': 'boolean'}}\n ]\n },\n 'notSupported': {'type': 'boolean'},\n 'tfName': {'type': 'string'},\n 'tfDeprecatedName': {'type': 'string'}\n },\n 'required': ['name', 'tfName', 'type'],\n 'additionalProperties': false\n },\n 'OpExecutor': {'type': 'object', 'additionalProperties': false}\n },\n 'items': {'$ref': '#/definitions/OpMapper'},\n 'type': 'array'\n};\n"]}
\No newline at end of file