kinfer 0.0.4__tar.gz → 0.0.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kinfer
3
- Version: 0.0.4
3
+ Version: 0.0.5
4
4
  Summary: The kinfer project
5
5
  Home-page: https://github.com/kscalelabs/kinfer.git
6
6
  Author: K-Scale Labs
@@ -1,3 +1,3 @@
1
- __version__ = "0.0.4"
1
+ __version__ = "0.0.5"
2
2
 
3
3
  from . import export, inference
@@ -81,6 +81,17 @@ class ONNXModel:
81
81
  else:
82
82
  return {detail["name"]: arr for detail, arr in zip(self.output_details, outputs)}
83
83
 
84
+ def run(self, inputs: Dict[str, np.ndarray]) -> Dict[str, np.ndarray]:
85
+ """Directly passes inputs to the model and returns outputs.
86
+
87
+ Args:
88
+ inputs: Input data as dictionary of arrays
89
+
90
+ Returns:
91
+ Model outputs as dictionary of arrays
92
+ """
93
+ return self.session.run(None, inputs)
94
+
84
95
  def get_metadata(self) -> Dict[str, Any]:
85
96
  """Get model metadata.
86
97
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kinfer
3
- Version: 0.0.4
3
+ Version: 0.0.5
4
4
  Summary: The kinfer project
5
5
  Home-page: https://github.com/kscalelabs/kinfer.git
6
6
  Author: K-Scale Labs
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes