-
Notifications
You must be signed in to change notification settings - Fork 315
/
Copy pathdml_rnn.json
65 lines (62 loc) · 1.88 KB
/
dml_rnn.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
61
62
63
64
65
{
"$schema": "./_schema.json",
"resources":
{
"input":
{
"initialValuesDataType": "FLOAT32",
"initialValues": { "valueCount": 32, "valueStart": 1, "valueDelta": 1 }
},
"weights":
{
"initialValuesDataType": "FLOAT32",
"initialValues": { "valueCount": 40, "valueStart": 1, "valueDelta": 0.4 }
},
"recurrence":
{
"initialValuesDataType": "FLOAT32",
"initialValues": { "valueCount": 50, "value": 0.3 }
},
"output":
{
"initialValuesDataType": "FLOAT32",
"initialValues": { "valueCount": 80, "value": 0 }
}
},
"dispatchables":
{
"rnn":
{
"type": "DML_OPERATOR_RNN",
"desc":
{
"InputTensor": { "DataType": "FLOAT32", "Sizes": [1,1,8,4] },
"WeightTensor": { "DataType": "FLOAT32", "Sizes": [1,2,5,4] },
"RecurrenceTensor": { "DataType": "FLOAT32", "Sizes": [1,2,5,5] },
"OutputSingleTensor": { "DataType": "FLOAT32", "Sizes": [1,2,8,5] },
"ActivationDescCount": 2,
"ActivationDescs":
[
{ "Type": "ACTIVATION_ELU", "Alpha": 0.5 },
{ "Type": "ACTIVATION_ELU", "Alpha": 3.5 }
],
"Direction": "DML_RECURRENT_NETWORK_DIRECTION_BIDIRECTIONAL"
}
}
},
"commands":
[
{
"type": "dispatch",
"dispatchable": "rnn",
"bindings":
{
"InputTensor": "input",
"WeightTensor": "weights",
"RecurrenceTensor": "recurrence",
"OutputSingleTensor": "output"
}
},
{ "type": "print", "resource": "output" }
]
}