Skip to content

Commit

Permalink
Remove test data and unused code originated from ModelInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
thodkatz committed Oct 11, 2024
1 parent fb680c1 commit cc44712
Show file tree
Hide file tree
Showing 45 changed files with 3 additions and 833 deletions.
34 changes: 1 addition & 33 deletions proto/inference.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ syntax = "proto3";

service Inference {
rpc CreateModelSession(CreateModelSessionRequest) returns (ModelSession) {}

rpc CloseModelSession(ModelSession) returns (Empty) {}

rpc CreateDatasetDescription(CreateDatasetDescriptionRequest) returns (DatasetDescription) {}
Expand Down Expand Up @@ -56,34 +57,6 @@ message NamedFloats {
}


/* InputShape will always be expected to have `shape` set.
* For `ShapeType` PARAMETRIZED, also a `stepShape` has to be given.
* ref: https://github.com/bioimage-io/spec-bioimage-io/blob/gh-pages/model_spec_latest.md */
message InputShape {
enum ShapeType {
EXPLICIT = 0;
PARAMETRIZED = 1;
}

ShapeType shapeType = 1;
// shape is min, when PARAMETRIZED
NamedInts shape = 2;
NamedInts stepShape = 4;
}

message OutputShape {
enum ShapeType {
EXPLICIT = 0;
IMPLICIT = 1;
}
ShapeType shapeType = 1;
NamedInts shape = 2;
NamedInts halo = 3;
string referenceTensor = 4;
NamedFloats scale = 5;
NamedFloats offset = 6;
}

message ModelSession {
string id = 1;
}
Expand Down Expand Up @@ -136,16 +109,11 @@ message PredictResponse {

message Empty {}


service FlightControl {
rpc Ping(Empty) returns (Empty) {}
rpc Shutdown(Empty) returns (Empty) {}
}

message ModelInfo {
repeated string deviceIds = 1;
}

message CreateModelSessionChunkedRequest {
oneof data {
ModelInfo info = 1;
Expand Down
Empty file removed tests/data/__init__.py
Empty file.
56 changes: 0 additions & 56 deletions tests/data/dummy/Dummy.model.yaml

This file was deleted.

Empty file removed tests/data/dummy/dummy.md
Empty file.
7 changes: 0 additions & 7 deletions tests/data/dummy/dummy.py

This file was deleted.

Binary file removed tests/data/dummy/dummy_in.npy
Binary file not shown.
Binary file removed tests/data/dummy/dummy_out.npy
Binary file not shown.
Empty file removed tests/data/dummy/environment.yaml
Empty file.
Binary file removed tests/data/dummy/weights
Binary file not shown.
57 changes: 0 additions & 57 deletions tests/data/dummy_param/Dummy.model_param.yaml

This file was deleted.

Empty file removed tests/data/dummy_param/dummy.md
Empty file.
7 changes: 0 additions & 7 deletions tests/data/dummy_param/dummy.py

This file was deleted.

Binary file removed tests/data/dummy_param/dummy_in.npy
Binary file not shown.
Binary file removed tests/data/dummy_param/dummy_out.npy
Binary file not shown.
Empty file.
Binary file removed tests/data/dummy_param/weights
Binary file not shown.
Binary file removed tests/data/dummy_tensorflow/cover.png
Binary file not shown.
Binary file removed tests/data/dummy_tensorflow/dummy-model-weights.zip
Binary file not shown.
34 changes: 0 additions & 34 deletions tests/data/dummy_tensorflow/rdf.yaml

This file was deleted.

74 changes: 0 additions & 74 deletions tests/data/dummy_tensorflow/tensorflow-dummy.md

This file was deleted.

Binary file removed tests/data/dummy_tensorflow/test_input.npy
Binary file not shown.
Binary file removed tests/data/dummy_tensorflow/test_output.npy
Binary file not shown.
Loading

0 comments on commit cc44712

Please sign in to comment.