forked from pyprob/ppx
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathppx.fbs
104 lines (84 loc) · 1.2 KB
/
ppx.fbs
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
// ppx
// 0.1.3
//
// Probabilistic programming execution protocol
// https://github.com/probprog/ppx
//
namespace ppx;
union MessageBody {
Handshake,
HandshakeResult,
Run,
RunResult,
Sample,
SampleResult,
Observe,
ObserveResult,
Tag,
TagResult,
Reset
}
table Message {
body: MessageBody;
}
table Tensor {
data: [double];
shape: [int];
}
union Distribution {
Normal,
Uniform,
Categorical,
Poisson
}
table Handshake {
system_name: string;
}
table HandshakeResult {
system_name: string;
model_name: string;
}
table Run {}
table RunResult {
result: Tensor;
}
table Sample {
address: string;
name: string;
distribution: Distribution;
control: bool = true;
replace: bool = false;
}
table SampleResult {
result: Tensor;
}
table Observe {
address: string;
name: string;
distribution: Distribution;
value: Tensor;
}
table ObserveResult {}
table Tag {
address: string;
name: string;
value: Tensor;
}
table TagResult {}
table Reset {}
table Normal {
mean: Tensor;
stddev: Tensor;
}
table Uniform {
low: Tensor;
high: Tensor;
}
table Categorical {
probs: Tensor;
}
table Poisson {
rate: Tensor;
}
root_type Message;
file_identifier "PPXF";