-
Notifications
You must be signed in to change notification settings - Fork 303
/
dml_element_wise_add.json
51 lines (48 loc) · 1.13 KB
/
dml_element_wise_add.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
{
"$schema": "./_schema.json",
"resources":
{
"A":
{
"initialValuesDataType": "FLOAT32",
"initialValues": [1,2,3]
},
"B":
{
"initialValuesDataType": "FLOAT32",
"initialValues": [5,8,-5]
},
"Out":
{
"initialValuesDataType": "FLOAT32",
"initialValues": { "valueCount": 3, "value": 0 }
}
},
"dispatchables":
{
"add":
{
"type": "DML_OPERATOR_ELEMENT_WISE_ADD",
"desc":
{
"ATensor": { "DataType": "FLOAT32", "Sizes": [3] },
"BTensor": { "DataType": "FLOAT32", "Sizes": [3] },
"OutputTensor": { "DataType": "FLOAT32", "Sizes": [3] }
}
}
},
"commands":
[
{
"type": "dispatch",
"dispatchable": "add",
"bindings":
{
"ATensor": "A",
"BTensor": "B",
"OutputTensor": "Out"
}
},
{ "type": "print", "resource": "Out" }
]
}