-
Notifications
You must be signed in to change notification settings - Fork 110
/
ActivationFunctionType.go
41 lines (34 loc) · 1.4 KB
/
ActivationFunctionType.go
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
// Code generated by the FlatBuffers compiler. DO NOT EDIT.
package tflite
import "strconv"
type ActivationFunctionType int8
const (
ActivationFunctionTypeNONE ActivationFunctionType = 0
ActivationFunctionTypeRELU ActivationFunctionType = 1
ActivationFunctionTypeRELU_N1_TO_1 ActivationFunctionType = 2
ActivationFunctionTypeRELU6 ActivationFunctionType = 3
ActivationFunctionTypeTANH ActivationFunctionType = 4
ActivationFunctionTypeSIGN_BIT ActivationFunctionType = 5
)
var EnumNamesActivationFunctionType = map[ActivationFunctionType]string{
ActivationFunctionTypeNONE: "NONE",
ActivationFunctionTypeRELU: "RELU",
ActivationFunctionTypeRELU_N1_TO_1: "RELU_N1_TO_1",
ActivationFunctionTypeRELU6: "RELU6",
ActivationFunctionTypeTANH: "TANH",
ActivationFunctionTypeSIGN_BIT: "SIGN_BIT",
}
var EnumValuesActivationFunctionType = map[string]ActivationFunctionType{
"NONE": ActivationFunctionTypeNONE,
"RELU": ActivationFunctionTypeRELU,
"RELU_N1_TO_1": ActivationFunctionTypeRELU_N1_TO_1,
"RELU6": ActivationFunctionTypeRELU6,
"TANH": ActivationFunctionTypeTANH,
"SIGN_BIT": ActivationFunctionTypeSIGN_BIT,
}
func (v ActivationFunctionType) String() string {
if s, ok := EnumNamesActivationFunctionType[v]; ok {
return s
}
return "ActivationFunctionType(" + strconv.FormatInt(int64(v), 10) + ")"
}