Skip to content

Commit

Permalink
Version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
ngua committed May 29, 2024
1 parent 1025862 commit 1b661c6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion inferno-ml-server-types/inferno-ml-server-types.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.4
name: inferno-ml-server-types
version: 0.3.0
version: 0.4.0
synopsis: Types for Inferno ML server
description: Types for Inferno ML server
homepage: https://github.com/plow-technologies/inferno.git#readme
Expand Down
24 changes: 13 additions & 11 deletions inferno-ml-server-types/src/Inferno/ML/Server/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ data Model uid gid = Model
-- | The user who owns the model, if any. Note that owning a model
-- will implicitly set permissions
user :: Maybe uid,
-- | The time that this model was "deleted", if any. For active models,
-- | The time that this model was \"deleted\", if any. For active models,
-- this will be @Nothing@
terminated :: Maybe UTCTime
}
Expand Down Expand Up @@ -345,7 +345,7 @@ data ModelVersion uid gid c = ModelVersion
-- the PSQL large object table
contents :: c,
version :: Version,
-- | The time that this model version was "deleted", if any. For active
-- | The time that this model version was \"deleted\", if any. For active
-- models versions, this will be @Nothing@
terminated :: Maybe UTCTime
}
Expand Down Expand Up @@ -605,15 +605,17 @@ data InferenceParam uid gid p s = InferenceParam
model :: Id (ModelVersion uid gid Oid),
-- | This is called @inputs@ but is also used for script outputs as
-- well. The access (input or output) is controlled by the 'ScriptInputType'.
-- For example, if this field is set to @[Single (p, Readable)]@, the script
-- will only have a single read-only input and will not be able to write
-- anywhere
-- For example, if this field is set to @[("input0", Single (p, Readable))]@,
-- the script will only have a single read-only input and will not be able to
-- write anywhere (note that we should disallow this scenario, as script
-- evaluation would not work properly)
--
-- Mapping the input\/output to the Inferno identifier helps ensure that we
-- will alwys maintain them in the correct order
-- Mapping the input\/output to the Inferno identifier helps ensure that
-- Inferno identifiers are always pointing to the correct input\/output;
-- otherwise we would need to rely on the order of the original identifiers
inputs :: Map Ident (SingleOrMany p, ScriptInputType),
-- | The time that this parameter was "deleted", if any. For active parameters,
-- this will be @Nothing@
-- | The time that this parameter was \"deleted\", if any. For active
-- parameters, this will be @Nothing@
terminated :: Maybe UTCTime,
user :: uid
}
Expand Down Expand Up @@ -655,8 +657,8 @@ instance
]

-- | Controls input interaction within a script, i.e. ability to read from
-- and\/or write to this input. Although the term "input" is used, "output"
-- is a more precise term for those with writes enabled
-- and\/or write to this input. Although the term \"input\" is used, those with
-- writes enabled can also be described as \"outputs\"
data ScriptInputType
= -- | Script input can be read, but not written
Readable
Expand Down
2 changes: 1 addition & 1 deletion inferno-ml-server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 2023.5.27
## 2023.5.29
* Change representation of script inputs/outputs

## 2023.5.22
Expand Down
2 changes: 1 addition & 1 deletion inferno-ml-server/inferno-ml-server.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.4
name: inferno-ml-server
version: 2023.5.27
version: 2023.5.29
synopsis: Server for Inferno ML
description: Server for Inferno ML
homepage: https://github.com/plow-technologies/inferno.git#readme
Expand Down

0 comments on commit 1b661c6

Please sign in to comment.