-
Notifications
You must be signed in to change notification settings - Fork 307
/
Copy pathdml_upsample_2d.json
46 lines (43 loc) · 1.13 KB
/
dml_upsample_2d.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
{
"$schema": "./_schema.json",
"resources":
{
"input":
{
"initialValuesDataType": "FLOAT32",
"initialValues": { "valueCount": 4, "valueStart": 1, "valueDelta": 1 }
},
"output":
{
"initialValuesDataType": "FLOAT32",
"initialValues": { "valueCount": 16, "value": 0 }
}
},
"dispatchables":
{
"upsample":
{
"type": "DML_OPERATOR_UPSAMPLE_2D",
"desc":
{
"InputTensor": { "DataType": "FLOAT32", "Sizes": [1,1,2,2] },
"OutputTensor": { "DataType": "FLOAT32", "Sizes": [1,1,4,4] },
"ScaleSize": { "Width": 2, "Height": 2 },
"InterpolationMode": "DML_INTERPOLATION_MODE_LINEAR"
}
}
},
"commands":
[
{
"type": "dispatch",
"dispatchable": "upsample",
"bindings":
{
"InputTensor": "input",
"OutputTensor": "output"
}
},
{ "type": "print", "resource": "output" }
]
}