tensorneko 0.3.13__tar.gz → 0.3.15__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.
Files changed (100) hide show
  1. {tensorneko-0.3.13/src/tensorneko.egg-info → tensorneko-0.3.15}/PKG-INFO +23 -4
  2. {tensorneko-0.3.13 → tensorneko-0.3.15}/README.md +20 -2
  3. {tensorneko-0.3.13 → tensorneko-0.3.15}/setup.py +2 -1
  4. tensorneko-0.3.15/src/tensorneko/msg/__init__.py +3 -0
  5. tensorneko-0.3.15/src/tensorneko/version.txt +1 -0
  6. {tensorneko-0.3.13 → tensorneko-0.3.15/src/tensorneko.egg-info}/PKG-INFO +23 -4
  7. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko.egg-info/SOURCES.txt +1 -0
  8. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko.egg-info/requires.txt +1 -1
  9. tensorneko-0.3.13/src/tensorneko/version.txt +0 -1
  10. {tensorneko-0.3.13 → tensorneko-0.3.15}/LICENSE +0 -0
  11. {tensorneko-0.3.13 → tensorneko-0.3.15}/setup.cfg +0 -0
  12. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/__init__.py +0 -0
  13. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/arch/__init__.py +0 -0
  14. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/arch/auto_encoder.py +0 -0
  15. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/arch/binary_classifier.py +0 -0
  16. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/arch/gan.py +0 -0
  17. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/arch/vqvae.py +0 -0
  18. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/arch/wgan.py +0 -0
  19. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/backend/__init__.py +0 -0
  20. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/callback/__init__.py +0 -0
  21. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/callback/display_metrics_callback.py +0 -0
  22. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/callback/earlystop_lr.py +0 -0
  23. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/callback/epoch_num_logger.py +0 -0
  24. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/callback/epoch_time_logger.py +0 -0
  25. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/callback/gpu_stats_logger.py +0 -0
  26. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/callback/lr_logger.py +0 -0
  27. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/callback/nil_callback.py +0 -0
  28. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/callback/system_stats_logger.py +0 -0
  29. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/dataset/__init__.py +0 -0
  30. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/dataset/list_dataset.py +0 -0
  31. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/dataset/nested_dataset.py +0 -0
  32. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/dataset/round_robin_dataset.py +0 -0
  33. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/dataset/sampler/__init__.py +0 -0
  34. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/dataset/sampler/sequential_iter_sampler.py +0 -0
  35. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/debug/__init__.py +0 -0
  36. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/evaluation/__init__.py +0 -0
  37. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/evaluation/enum.py +0 -0
  38. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/evaluation/fid.py +0 -0
  39. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/evaluation/iou.py +0 -0
  40. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/evaluation/psnr.py +0 -0
  41. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/evaluation/secs.py +0 -0
  42. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/evaluation/ssim.py +0 -0
  43. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/io/__init__.py +0 -0
  44. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/io/mesh/__init__.py +0 -0
  45. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/io/mesh/mesh_reader.py +0 -0
  46. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/io/mesh/mesh_writer.py +0 -0
  47. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/io/reader.py +0 -0
  48. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/io/weight/__init__.py +0 -0
  49. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/io/weight/weight_reader.py +0 -0
  50. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/io/weight/weight_writer.py +0 -0
  51. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/io/writer.py +0 -0
  52. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/layer/__init__.py +0 -0
  53. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/layer/aggregation.py +0 -0
  54. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/layer/attention.py +0 -0
  55. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/layer/concatenate.py +0 -0
  56. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/layer/conv.py +0 -0
  57. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/layer/linear.py +0 -0
  58. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/layer/log.py +0 -0
  59. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/layer/masked_conv2d.py +0 -0
  60. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/layer/noise.py +0 -0
  61. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/layer/patching.py +0 -0
  62. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/layer/positional_embedding.py +0 -0
  63. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/layer/reshape.py +0 -0
  64. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/layer/stack.py +0 -0
  65. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/layer/vector_quantizer.py +0 -0
  66. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/module/__init__.py +0 -0
  67. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/module/dense.py +0 -0
  68. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/module/gated_conv.py +0 -0
  69. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/module/inception.py +0 -0
  70. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/module/mlp.py +0 -0
  71. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/module/residual.py +0 -0
  72. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/module/transformer.py +0 -0
  73. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/neko_model.py +0 -0
  74. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/neko_module.py +0 -0
  75. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/neko_trainer.py +0 -0
  76. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/notebook/__init__.py +0 -0
  77. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/optim/__init__.py +0 -0
  78. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/optim/lr_scheduler/__init__.py +0 -0
  79. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/preprocess/__init__.py +0 -0
  80. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/preprocess/crop.py +0 -0
  81. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/preprocess/enum.py +0 -0
  82. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/preprocess/face_detector/__init__.py +0 -0
  83. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/preprocess/pad.py +0 -0
  84. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/preprocess/resize.py +0 -0
  85. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/util/__init__.py +0 -0
  86. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/util/configuration.py +0 -0
  87. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/util/dispatched_misc.py +0 -0
  88. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/util/misc.py +0 -0
  89. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/util/reproducibility.py +0 -0
  90. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/util/string_getter.py +0 -0
  91. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/util/type.py +0 -0
  92. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/visualization/__init__.py +0 -0
  93. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/visualization/image_browser/__init__.py +0 -0
  94. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/visualization/log_graph.py +0 -0
  95. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/visualization/matplotlib.py +0 -0
  96. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko/visualization/watcher/__init__.py +0 -0
  97. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko.egg-info/dependency_links.txt +0 -0
  98. {tensorneko-0.3.13 → tensorneko-0.3.15}/src/tensorneko.egg-info/top_level.txt +0 -0
  99. {tensorneko-0.3.13 → tensorneko-0.3.15}/test/test_library_info.py +0 -0
  100. {tensorneko-0.3.13 → tensorneko-0.3.15}/test/test_version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tensorneko
3
- Version: 0.3.13
3
+ Version: 0.3.15
4
4
  Summary: Tensor Neural Engine Kompanion. An util library based on PyTorch and PyTorch Lightning.
5
5
  Home-page: https://github.com/ControlNet/tensorneko
6
6
  Author: ControlNet
@@ -8,13 +8,14 @@ Author-email: smczx@hotmail.com
8
8
  License: UNKNOWN
9
9
  Project-URL: Bug Tracker, https://github.com/ControlNet/tensorneko/issues
10
10
  Project-URL: Source Code, https://github.com/ControlNet/tensorneko
11
- Keywords: deep learning,pytorch,AI
11
+ Keywords: deep learning,pytorch,AI,data processing
12
12
  Platform: UNKNOWN
13
13
  Classifier: Programming Language :: Python :: 3
14
14
  Classifier: Programming Language :: Python :: 3.8
15
15
  Classifier: Programming Language :: Python :: 3.9
16
16
  Classifier: Programming Language :: Python :: 3.10
17
17
  Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
18
19
  Classifier: License :: OSI Approved :: MIT License
19
20
  Classifier: Operating System :: OS Independent
20
21
  Classifier: Intended Audience :: Developers
@@ -60,11 +61,18 @@ To use the library without PyTorch and PyTorch Lightning, you can install the ut
60
61
  pip install tensorneko_util
61
62
  ```
62
63
 
63
- Some cpu bound functions are implemented by `pyo3`, and you can install the optimized version with below command.
64
+ Some cpu bound functions are implemented by rust-based `pyo3`, and you can install the optimized version with below command.
64
65
  ```shell
65
66
  pip install tensorneko_lib
66
67
  ```
67
68
 
69
+ Some CLI tools are provided in the `tensorneko_tool` package, and you can install it with below command.
70
+ ```shell
71
+ pipx install tensorneko_tool # or `pip install tensorneko_tool`
72
+ ```
73
+
74
+ Then you can use the CLI tools `tensorneko` in the terminal.
75
+
68
76
  ## Neko Layers, Modules and Architectures
69
77
 
70
78
  Build an MLP with linear layers. The activation and normalization will be placed in the hidden layers.
@@ -507,7 +515,7 @@ This library provides event bus based reactive tools. The API integrates the Pyt
507
515
  # useful decorators for default event bus
508
516
  from tensorneko.util import subscribe
509
517
  # Event base type
510
- from tensorneko.util import Event
518
+ from tensorneko.util import Event, EventBus
511
519
 
512
520
  class LogEvent(Event):
513
521
  def __init__(self, message: str):
@@ -537,6 +545,7 @@ if __name__ == '__main__':
537
545
  # emit an event, and then the event handler will be invoked
538
546
  # The sequential order is not guaranteed
539
547
  LogEvent("Hello world!")
548
+ EventBus.default.wait() # it's not blocking, need to call wait manually before exit.
540
549
  # one possible output:
541
550
  # Hello world! in another thread
542
551
  # Hello world! async
@@ -673,4 +682,14 @@ Functions list (in `tensorneko`):
673
682
  - `is_bad_num`
674
683
  - `count_parameters`
675
684
 
685
+ ## TensorNeko Tools
686
+
687
+ Some CLI tools are provided in the `tensorneko_tool` package.
688
+
689
+ The `gotify` can send a message to the Gotify server, with the environment variables `GOTIFY_URL` and `GOTIFY_TOKEN` set.
690
+
691
+ ```shell
692
+ tensorneko gotify "Script finished!"
693
+ ```
694
+
676
695
 
@@ -34,11 +34,18 @@ To use the library without PyTorch and PyTorch Lightning, you can install the ut
34
34
  pip install tensorneko_util
35
35
  ```
36
36
 
37
- Some cpu bound functions are implemented by `pyo3`, and you can install the optimized version with below command.
37
+ Some cpu bound functions are implemented by rust-based `pyo3`, and you can install the optimized version with below command.
38
38
  ```shell
39
39
  pip install tensorneko_lib
40
40
  ```
41
41
 
42
+ Some CLI tools are provided in the `tensorneko_tool` package, and you can install it with below command.
43
+ ```shell
44
+ pipx install tensorneko_tool # or `pip install tensorneko_tool`
45
+ ```
46
+
47
+ Then you can use the CLI tools `tensorneko` in the terminal.
48
+
42
49
  ## Neko Layers, Modules and Architectures
43
50
 
44
51
  Build an MLP with linear layers. The activation and normalization will be placed in the hidden layers.
@@ -481,7 +488,7 @@ This library provides event bus based reactive tools. The API integrates the Pyt
481
488
  # useful decorators for default event bus
482
489
  from tensorneko.util import subscribe
483
490
  # Event base type
484
- from tensorneko.util import Event
491
+ from tensorneko.util import Event, EventBus
485
492
 
486
493
  class LogEvent(Event):
487
494
  def __init__(self, message: str):
@@ -511,6 +518,7 @@ if __name__ == '__main__':
511
518
  # emit an event, and then the event handler will be invoked
512
519
  # The sequential order is not guaranteed
513
520
  LogEvent("Hello world!")
521
+ EventBus.default.wait() # it's not blocking, need to call wait manually before exit.
514
522
  # one possible output:
515
523
  # Hello world! in another thread
516
524
  # Hello world! async
@@ -646,3 +654,13 @@ Functions list (in `tensorneko`):
646
654
  - `with_printed_shape`
647
655
  - `is_bad_num`
648
656
  - `count_parameters`
657
+
658
+ ## TensorNeko Tools
659
+
660
+ Some CLI tools are provided in the `tensorneko_tool` package.
661
+
662
+ The `gotify` can send a message to the Gotify server, with the environment variables `GOTIFY_URL` and `GOTIFY_TOKEN` set.
663
+
664
+ ```shell
665
+ tensorneko gotify "Script finished!"
666
+ ```
@@ -27,7 +27,7 @@ setuptools.setup(
27
27
  "Bug Tracker": "https://github.com/ControlNet/tensorneko/issues",
28
28
  "Source Code": "https://github.com/ControlNet/tensorneko",
29
29
  },
30
- keywords=["deep learning", "pytorch", "AI"],
30
+ keywords=["deep learning", "pytorch", "AI", "data processing"],
31
31
  package_dir={"": "src"},
32
32
  packages=setuptools.find_packages(where="src", include=["tensorneko", "tensorneko.*"]),
33
33
  package_data={
@@ -43,6 +43,7 @@ setuptools.setup(
43
43
  "Programming Language :: Python :: 3.9",
44
44
  "Programming Language :: Python :: 3.10",
45
45
  "Programming Language :: Python :: 3.11",
46
+ "Programming Language :: Python :: 3.12",
46
47
  "License :: OSI Approved :: MIT License",
47
48
  "Operating System :: OS Independent",
48
49
  "Intended Audience :: Developers",
@@ -0,0 +1,3 @@
1
+ from tensorneko_util.msg import push_gotify
2
+
3
+ __all__ = ["push_gotify"]
@@ -0,0 +1 @@
1
+ 0.3.15
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tensorneko
3
- Version: 0.3.13
3
+ Version: 0.3.15
4
4
  Summary: Tensor Neural Engine Kompanion. An util library based on PyTorch and PyTorch Lightning.
5
5
  Home-page: https://github.com/ControlNet/tensorneko
6
6
  Author: ControlNet
@@ -8,13 +8,14 @@ Author-email: smczx@hotmail.com
8
8
  License: UNKNOWN
9
9
  Project-URL: Bug Tracker, https://github.com/ControlNet/tensorneko/issues
10
10
  Project-URL: Source Code, https://github.com/ControlNet/tensorneko
11
- Keywords: deep learning,pytorch,AI
11
+ Keywords: deep learning,pytorch,AI,data processing
12
12
  Platform: UNKNOWN
13
13
  Classifier: Programming Language :: Python :: 3
14
14
  Classifier: Programming Language :: Python :: 3.8
15
15
  Classifier: Programming Language :: Python :: 3.9
16
16
  Classifier: Programming Language :: Python :: 3.10
17
17
  Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
18
19
  Classifier: License :: OSI Approved :: MIT License
19
20
  Classifier: Operating System :: OS Independent
20
21
  Classifier: Intended Audience :: Developers
@@ -60,11 +61,18 @@ To use the library without PyTorch and PyTorch Lightning, you can install the ut
60
61
  pip install tensorneko_util
61
62
  ```
62
63
 
63
- Some cpu bound functions are implemented by `pyo3`, and you can install the optimized version with below command.
64
+ Some cpu bound functions are implemented by rust-based `pyo3`, and you can install the optimized version with below command.
64
65
  ```shell
65
66
  pip install tensorneko_lib
66
67
  ```
67
68
 
69
+ Some CLI tools are provided in the `tensorneko_tool` package, and you can install it with below command.
70
+ ```shell
71
+ pipx install tensorneko_tool # or `pip install tensorneko_tool`
72
+ ```
73
+
74
+ Then you can use the CLI tools `tensorneko` in the terminal.
75
+
68
76
  ## Neko Layers, Modules and Architectures
69
77
 
70
78
  Build an MLP with linear layers. The activation and normalization will be placed in the hidden layers.
@@ -507,7 +515,7 @@ This library provides event bus based reactive tools. The API integrates the Pyt
507
515
  # useful decorators for default event bus
508
516
  from tensorneko.util import subscribe
509
517
  # Event base type
510
- from tensorneko.util import Event
518
+ from tensorneko.util import Event, EventBus
511
519
 
512
520
  class LogEvent(Event):
513
521
  def __init__(self, message: str):
@@ -537,6 +545,7 @@ if __name__ == '__main__':
537
545
  # emit an event, and then the event handler will be invoked
538
546
  # The sequential order is not guaranteed
539
547
  LogEvent("Hello world!")
548
+ EventBus.default.wait() # it's not blocking, need to call wait manually before exit.
540
549
  # one possible output:
541
550
  # Hello world! in another thread
542
551
  # Hello world! async
@@ -673,4 +682,14 @@ Functions list (in `tensorneko`):
673
682
  - `is_bad_num`
674
683
  - `count_parameters`
675
684
 
685
+ ## TensorNeko Tools
686
+
687
+ Some CLI tools are provided in the `tensorneko_tool` package.
688
+
689
+ The `gotify` can send a message to the Gotify server, with the environment variables `GOTIFY_URL` and `GOTIFY_TOKEN` set.
690
+
691
+ ```shell
692
+ tensorneko gotify "Script finished!"
693
+ ```
694
+
676
695
 
@@ -71,6 +71,7 @@ src/tensorneko/module/inception.py
71
71
  src/tensorneko/module/mlp.py
72
72
  src/tensorneko/module/residual.py
73
73
  src/tensorneko/module/transformer.py
74
+ src/tensorneko/msg/__init__.py
74
75
  src/tensorneko/notebook/__init__.py
75
76
  src/tensorneko/optim/__init__.py
76
77
  src/tensorneko/optim/lr_scheduler/__init__.py
@@ -8,7 +8,7 @@ pillow>=8.1
8
8
  av>=8.0.3
9
9
  numpy>=1.20.1
10
10
  einops>=0.3.0
11
- tensorneko_util==0.3.13
11
+ tensorneko_util==0.3.15
12
12
 
13
13
  [:platform_system == "Windows"]
14
14
  pysoundfile>=0.9.0
@@ -1 +0,0 @@
1
- 0.3.13
File without changes
File without changes