-
Notifications
You must be signed in to change notification settings - Fork 307
/
Copy pathdml_split.json
63 lines (60 loc) · 1.56 KB
/
dml_split.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"$schema": "./_schema.json",
"resources":
{
"A":
{
"initialValuesDataType": "FLOAT32",
"initialValues": [1,2,3,4,5,6]
},
"Out1":
{
"initialValuesDataType": "FLOAT32",
"initialValues": { "valueCount": 2, "value": 0 }
},
"Out2":
{
"initialValuesDataType": "FLOAT32",
"initialValues": { "valueCount": 2, "value": 0 }
},
"Out3":
{
"initialValuesDataType": "FLOAT32",
"initialValues": { "valueCount": 2, "value": 0 }
}
},
"dispatchables":
{
"split":
{
"type": "DML_OPERATOR_SPLIT",
"desc":
{
"Axis": 0,
"InputTensor": { "DataType": "FLOAT32", "Sizes": [6] },
"OutputCount": 3,
"OutputTensors":
[
{ "DataType": "FLOAT32", "Sizes": [2] },
{ "DataType": "FLOAT32", "Sizes": [2] },
{ "DataType": "FLOAT32", "Sizes": [2] }
]
}
}
},
"commands":
[
{
"type": "dispatch",
"dispatchable": "split",
"bindings":
{
"InputTensor": "A",
"OutputTensors": ["Out1", "Out2", "Out3"]
}
},
{ "type": "print", "resource": "Out1" },
{ "type": "print", "resource": "Out2" },
{ "type": "print", "resource": "Out3" }
]
}