-
Notifications
You must be signed in to change notification settings - Fork 307
/
Copy pathdml_convolution_3d.json
60 lines (57 loc) · 1.67 KB
/
dml_convolution_3d.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
{
"$schema": "./_schema.json",
"resources":
{
"input":
{
"initialValuesDataType": "FLOAT32",
"initialValues": { "valueCount": 27, "valueStart": 1, "valueDelta": 0 }
},
"filter":
{
"initialValuesDataType": "FLOAT32",
"initialValues": [0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5]
},
"output":
{
"initialValuesDataType": "FLOAT32",
"initialValues": { "valueCount": 8, "value": 0 }
}
},
"dispatchables":
{
"conv3d":
{
"type": "DML_OPERATOR_CONVOLUTION",
"desc":
{
"InputTensor": { "DataType": "FLOAT32", "Sizes": [1,1,3,3,3] },
"FilterTensor": { "DataType": "FLOAT32", "Sizes": [1,1,2,2,2] },
"OutputTensor": { "DataType": "FLOAT32", "Sizes": [1,1,2,2,2] },
"Mode": "DML_CONVOLUTION_MODE_CROSS_CORRELATION",
"Direction": "DML_CONVOLUTION_DIRECTION_FORWARD",
"DimensionCount": 3,
"Strides": [1,1,1],
"Dilations": [1,1,1],
"StartPadding": [0,0,0],
"EndPadding": [0,0,0],
"OutputPadding": [0,0,0],
"GroupCount": 1
}
}
},
"commands":
[
{
"type": "dispatch",
"dispatchable": "conv3d",
"bindings":
{
"InputTensor": "input",
"FilterTensor": "filter",
"OutputTensor": "output"
}
},
{ "type": "print", "resource": "output" }
]
}