Skip to content

Commit

Permalink
Merge pull request #73 from purusharths/patch-2
Browse files Browse the repository at this point in the history
update models/readme.md
linusseelinger authored May 22, 2024
2 parents d83ff4f + c578ca6 commit 3d46b9f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions models/README.md
Original file line number Diff line number Diff line change
@@ -150,11 +150,14 @@ Optionally, configuration options may be passed to the model by the client: `con
For more flexibility, the model's input and output dimensions may optionally depend on `config`.

```
testmodel = UMBridge.Model(name="forward", inputSizes=[1], outputSizes=[1])
UMBridge.define_evaluate(testmodel, (input, config) -> (2*input))
function evaluate(input::Vector{Any}, config::Dict{String, Any})
output = 2 * input
return [output]
end
UMBridge.serve_models([testmodel], 4242)
testmodel = UMBridge.Model(name="forward", inputSizes=[1], outputSizes=[1])
UMBridge.define_evaluate(testmodel, evaluate)
UMBridge.serve_models([testmodel], 4232)
```

## MUQ server

0 comments on commit 3d46b9f

Please sign in to comment.