Skip to content

Commit

Permalink
Update UMBridge.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
linusseelinger authored Sep 7, 2023
1 parent 7c20464 commit 287e142
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/UMBridge.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ function evaluate(model::HTTPModel, input, config)
return parsed["output"]
end

function gradient(model::HTTPModel, out_wrt, in_wrt, parameters, sens, config = Dict())
function gradient(model::HTTPModel, out_wrt, in_wrt, input, sens, config = Dict())
body = Dict(
"name" =>name(model),
"outWrt" => out_wrt,
"inWrt" => in_wrt,
"parameters" => parameters,
"input" => input,
"sens" => sens,
"config" => config
)
Expand All @@ -57,12 +57,12 @@ function gradient(model::HTTPModel, out_wrt, in_wrt, parameters, sens, config =
return parsed["output"]
end

function apply_jacobian(model::HTTPModel, out_wrt, in_wrt, parameters, vec, config = Dict())
function apply_jacobian(model::HTTPModel, out_wrt, in_wrt, input, vec, config = Dict())
body = Dict(
"name" =>name(model),
"outWrt" => out_wrt,
"inWrt" => in_wrt,
"parameters" => parameters,
"input" => input,
"vec" => vec,
"config" => config
)
Expand All @@ -74,13 +74,13 @@ function apply_jacobian(model::HTTPModel, out_wrt, in_wrt, parameters, vec, conf
return parsed["output"]
end

function apply_hessian(model::HTTPModel, out_wrt, in_wrt1, in_wrt2, parameters, vec, sens, config = Dict())
function apply_hessian(model::HTTPModel, out_wrt, in_wrt1, in_wrt2, input, vec, sens, config = Dict())
body = Dict(
"name" =>name(model),
"outWrt" => out_wrt,
"inWrt1" => in_wrt1,
"inWrt2" => in_wrt2,
"parameters" => parameters,
"input" => input,
"vec" => vec,
"sens" => sens,
"config" => config
Expand Down

2 comments on commit 287e142

@annereinarz
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error while trying to register: "Tag with name v1.0.1 already exists and points to a different commit"

Please sign in to comment.