Skip to content

Commit 7891a3a

Browse files
authored
Update Libtask API (#42)
* Update model.jl * Update Project.toml
1 parent fe4a188 commit 7891a3a

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "AdvancedPS"
22
uuid = "576499cb-2369-40b2-a588-c64705576edc"
33
authors = ["TuringLang"]
4-
version = "0.3.2"
4+
version = "0.3.3"
55

66
[deps]
77
AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001"

src/model.jl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,3 @@ Observe sample `x` from distribution `dist` and yield its log-likelihood value.
66
function observe(dist::Distributions.Distribution, x)
77
return Libtask.produce(Distributions.loglikelihood(dist, x))
88
end
9-
10-
function (instr::Libtask.Instruction{typeof(observe)})()
11-
dist = Libtask.val(instr.input[1])
12-
x = Libtask.val(instr.input[2])
13-
result = Distributions.loglikelihood(dist, x)
14-
return Libtask.internal_produce(instr, result)
15-
end

0 commit comments

Comments
 (0)