-
Notifications
You must be signed in to change notification settings - Fork 305
/
Copy pathdml_reduce.json
48 lines (45 loc) · 1.15 KB
/
dml_reduce.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
{
"$schema": "./_schema.json",
"resources":
{
"input":
{
"initialValuesDataType": "FLOAT32",
"initialValues": { "valueCount": 9, "valueStart": 1, "valueDelta": 1 }
},
"output":
{
"initialValuesDataType": "FLOAT32",
"initialValues": { "valueCount": 3, "value": 0 }
}
},
"dispatchables":
{
"sum":
{
"type": "DML_OPERATOR_REDUCE",
"desc":
{
"InputTensor": { "DataType": "FLOAT32", "Sizes": [1,1,3,3] },
"OutputTensor": { "DataType": "FLOAT32", "Sizes": [1,1,3,1] },
"Function": "DML_REDUCE_FUNCTION_SUM",
"AxisCount": 1,
"Axes": [3]
}
}
},
"commands":
[
{
"type": "dispatch",
"dispatchable": "sum",
"bindings":
{
"InputTensor": "input",
"OutputTensor": "output"
}
},
{ "type": "print", "resource": "input" },
{ "type": "print", "resource": "output" }
]
}