kinfer 0.3.2__cp312-cp312-macosx_11_0_arm64.whl → 0.4.0__cp312-cp312-macosx_11_0_arm64.whl

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.
Files changed (45) hide show
  1. kinfer/__init__.py +0 -1
  2. kinfer/common/__init__.py +0 -0
  3. kinfer/common/types.py +11 -0
  4. kinfer/export/__init__.py +0 -1
  5. kinfer/export/common.py +35 -0
  6. kinfer/export/jax.py +51 -0
  7. kinfer/export/pytorch.py +42 -110
  8. kinfer/export/serialize.py +86 -0
  9. kinfer/requirements.txt +3 -4
  10. kinfer/rust/Cargo.toml +8 -6
  11. kinfer/rust/src/lib.rs +2 -11
  12. kinfer/rust/src/model.rs +271 -121
  13. kinfer/rust/src/runtime.rs +104 -0
  14. kinfer/rust_bindings/Cargo.toml +8 -1
  15. kinfer/rust_bindings/rust_bindings.pyi +35 -0
  16. kinfer/rust_bindings/src/lib.rs +310 -1
  17. kinfer/rust_bindings.cpython-312-darwin.so +0 -0
  18. kinfer/rust_bindings.pyi +29 -1
  19. kinfer-0.4.0.dist-info/METADATA +55 -0
  20. kinfer-0.4.0.dist-info/RECORD +26 -0
  21. {kinfer-0.3.2.dist-info → kinfer-0.4.0.dist-info}/WHEEL +2 -1
  22. kinfer/inference/__init__.py +0 -1
  23. kinfer/inference/python.py +0 -92
  24. kinfer/proto/__init__.py +0 -40
  25. kinfer/proto/kinfer_pb2.py +0 -103
  26. kinfer/proto/kinfer_pb2.pyi +0 -1097
  27. kinfer/requirements-dev.txt +0 -8
  28. kinfer/rust/build.rs +0 -16
  29. kinfer/rust/src/kinfer_proto.rs +0 -14
  30. kinfer/rust/src/main.rs +0 -6
  31. kinfer/rust/src/onnx_serializer.rs +0 -804
  32. kinfer/rust/src/serializer.rs +0 -221
  33. kinfer/rust/src/tests/onnx_serializer_tests.rs +0 -212
  34. kinfer/serialize/__init__.py +0 -36
  35. kinfer/serialize/base.py +0 -536
  36. kinfer/serialize/json.py +0 -399
  37. kinfer/serialize/numpy.py +0 -426
  38. kinfer/serialize/pytorch.py +0 -402
  39. kinfer/serialize/schema.py +0 -125
  40. kinfer/serialize/types.py +0 -17
  41. kinfer/serialize/utils.py +0 -177
  42. kinfer-0.3.2.dist-info/METADATA +0 -57
  43. kinfer-0.3.2.dist-info/RECORD +0 -39
  44. {kinfer-0.3.2.dist-info → kinfer-0.4.0.dist-info/licenses}/LICENSE +0 -0
  45. {kinfer-0.3.2.dist-info → kinfer-0.4.0.dist-info}/top_level.txt +0 -0
@@ -1,8 +0,0 @@
1
- # requirements-dev.txt
2
-
3
- black
4
- darglint
5
- mypy
6
- mypy-protobuf
7
- pytest
8
- ruff
kinfer/rust/build.rs DELETED
@@ -1,16 +0,0 @@
1
- use std::env;
2
- use std::path::PathBuf;
3
-
4
- fn main() {
5
- let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap()).join("proto");
6
- std::fs::create_dir_all(&out_dir).unwrap();
7
-
8
- let mut config = prost_build::Config::new();
9
- config.out_dir(&out_dir);
10
- config.retain_enum_prefix();
11
- config.enable_type_names();
12
-
13
- config
14
- .compile_protos(&["../proto/kinfer.proto"], &["../proto/"])
15
- .unwrap();
16
- }
@@ -1,14 +0,0 @@
1
- pub mod proto {
2
- include!(concat!(env!("OUT_DIR"), "/proto/kinfer.proto.rs"));
3
- }
4
-
5
- pub use proto::{
6
- AudioFrameSchema, AudioFrameValue, CameraFrameSchema, CameraFrameValue, DType,
7
- ImuAccelerometerValue, ImuGyroscopeValue, ImuMagnetometerValue, ImuSchema, ImuValue,
8
- Io as ProtoIO, IoSchema as ProtoIOSchema, JointCommandValue, JointCommandsSchema,
9
- JointCommandsValue, JointPositionUnit, JointPositionValue, JointPositionsSchema,
10
- JointPositionsValue, JointTorqueUnit, JointTorqueValue, JointTorquesSchema, JointTorquesValue,
11
- JointVelocitiesSchema, JointVelocitiesValue, JointVelocityUnit, JointVelocityValue,
12
- ModelSchema, StateTensorSchema, StateTensorValue, TimestampSchema, TimestampValue,
13
- Value as ProtoValue, ValueSchema, VectorCommandSchema, VectorCommandValue,
14
- };
kinfer/rust/src/main.rs DELETED
@@ -1,6 +0,0 @@
1
- use kinfer::*;
2
-
3
- fn main() -> Result<(), Box<dyn std::error::Error>> {
4
- println!("Hello, world!");
5
- Ok(())
6
- }