• <xmp id="om0om">
  • <table id="om0om"><noscript id="om0om"></noscript></table>
  • Compute Graph Framework SDK Reference  5.14
    All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
    trans.schema.json
    Go to the documentation of this file.
    1{
    2 "$schema": "https://json-schema.org/draft/2020-12/schema",
    3 "$id": "https://nvidia.com/dw/trans.schema.json",
    4 "title": "DW CGF Transformation Descriptor",
    5 "description": "The descriptor of a CGF transformation. The keys in JSON should appear in the same order as the properties are documented in the schema.",
    6 "type": "object",
    7 "required": [
    8 "target",
    9 "targetType",
    10 "actions"
    11 ],
    12 "additionalProperties": false,
    13 "properties": {
    14 "comment": {
    15 "description": "An optional description of the transformation descriptor",
    16 "type": "string"
    17 },
    18 "target": {
    19 "description": "The target type name of the transformation. Current this field only serves as a hint, not enforced so far.",
    20 "type": "string",
    21 "pattern": "^[a-zA-Z][a-zA-Z0-9_]*$"
    22 },
    23 "targetType": {
    24 "description": "Specify if the target is an application or graphlet.",
    25 "type": "string",
    26 "enum": [
    27 "app",
    28 "graphlet"
    29 ]
    30 },
    31 "actions": {
    32 "description": "A sequence of actions defines the transformation",
    33 "type": "array",
    34 "items": {
    35 "type": "object",
    36 "description": "Definition of each action. Each kind of action only allow its own properties appear in the object.",
    37 "additionalProperties": false,
    38 "required": [
    39 "action"
    40 ],
    41 "properties": {
    42 "comment": {
    43 "description": "An optional description of the action",
    44 "type": "string"
    45 },
    46 "action": {
    47 "description": "The action name. The action name has to be registered into ActionFactory.",
    48 "type": "string",
    49 "pattern": "^[a-z][a-z0-9\\-]*[a-z0-9]$"
    50 },
    51 "instances": {
    52 "description": "The names of the DAG component to which the action is going to be applied.",
    53 "type": "array",
    54 "items": {
    55 "type": "string",
    56 "pattern": "^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"
    57 },
    58 "uniqueItems": true
    59 },
    60 "attributes": {
    61 "description": "The attributes for the action.",
    62 "type": "object",
    63 "patternProperties": {
    64 "^[a-z][a-zA-Z0-9_-]*$": {
    65 "description": "Value for the action attribute.",
    66 "type": [
    67 "boolean",
    68 "number",
    69 "string",
    70 "array",
    71 "object"
    72 ]
    73 }
    74 }
    75 }
    76 }
    77 }
    78 }
    79 }
    80}
    人人超碰97caoporen国产