-
Notifications
You must be signed in to change notification settings - Fork 307
/
Copy pathdml_gemm_graph.json
57 lines (54 loc) · 1.6 KB
/
dml_gemm_graph.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
{
"$schema": "./_schema.json",
"resources":
{
"A": {
"initialValuesDataType": "FLOAT32",
"initialValues": { "valueCount": 1024, "value": 1 }
},
"B": {
"initialValuesDataType": "FLOAT32",
"initialValues": { "valueCount": 1024, "value": 1 }
},
"output": {
"initialValuesDataType": "FLOAT32",
"initialValues": { "valueCount": 1024, "value": 1 }
}
},
"dispatchables":
{
"gemm":
{
"type": "DML_OPERATOR_GEMM",
"desc":
{
"ATensor": { "DataType": "FLOAT32", "Sizes": [1,1,32,32] },
"BTensor": { "DataType": "FLOAT32", "Sizes": [1,1,32,32], "Flags": "DML_TENSOR_FLAG_OWNED_BY_DML" },
"OutputTensor": { "DataType": "FLOAT32", "Sizes": [1,1,32,32] },
"TransA": "DML_MATRIX_TRANSFORM_NONE",
"TransB": "DML_MATRIX_TRANSFORM_NONE",
"Alpha": 1.0,
"Beta": 1.0
},
"dmlCompileType": "DmlCompileGraph",
"executionFlags": "DML_EXECUTION_FLAG_ALLOW_HALF_PRECISION_COMPUTATION",
"bindings":
{
"BTensor": "B"
}
}
},
"commands":
[
{
"type": "dispatch",
"dispatchable": "gemm",
"bindings":
{
"ATensor": "A",
"OutputTensor": "output"
}
},
{ "type": "print", "resource": "output" }
]
}