tensorneko 0.3.10__py3-none-any.whl → 0.3.12__py3-none-any.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.
tensorneko/layer/conv.py CHANGED
@@ -1,5 +1,4 @@
1
1
  from abc import ABC, abstractmethod
2
- from functools import partial
3
2
  from typing import Union, Optional, Callable, Tuple, TypeVar, Type, Generic
4
3
 
5
4
  from torch import Tensor
@@ -7,7 +6,6 @@ from torch.nn import Conv1d as PtConv1d, Conv2d as PtConv2d, Conv3d as PtConv3d,
7
6
  from torch.nn.modules.conv import _ConvNd as PtConvNd
8
7
 
9
8
  from ..neko_module import NekoModule
10
- from ..util import F
11
9
 
12
10
  C = TypeVar("C", bound=PtConvNd)
13
11
 
@@ -4,7 +4,7 @@ from tensorneko_util.util import dispatch, AverageMeter, tensorneko_util_path
4
4
  from tensorneko_util.util.fp import Seq, AbstractSeq, curry, F, Stream, return_option, Option, Monad, Eval, _, __
5
5
  from tensorneko_util.util import ref, Timer, Singleton
6
6
  from tensorneko_util.util.eventbus import Event, EventBus, EventHandler, subscribe
7
- from tensorneko_util.util import download_file, WindowMerger, Registry
7
+ from tensorneko_util.util import download_file, download_file_thread, download_files_thread, WindowMerger, Registry
8
8
  from . import type
9
9
  from .configuration import Configuration
10
10
  from .misc import reduce_dict_by, summarize_dict_by, with_printed_shape, is_bad_num, count_parameters, compose, \
@@ -73,6 +73,8 @@ __all__ = [
73
73
  "try_until_success",
74
74
  "sample_indexes",
75
75
  "download_file",
76
+ "download_file_thread",
77
+ "download_files_thread",
76
78
  "WindowMerger",
77
79
  "Registry",
78
80
  ]
tensorneko/version.txt CHANGED
@@ -1 +1 @@
1
- 0.3.10
1
+ 0.3.12
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tensorneko
3
- Version: 0.3.10
3
+ Version: 0.3.12
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
@@ -33,7 +33,7 @@ Requires-Dist: pillow >=8.1
33
33
  Requires-Dist: av >=8.0.3
34
34
  Requires-Dist: numpy >=1.20.1
35
35
  Requires-Dist: einops >=0.3.0
36
- Requires-Dist: tensorneko-util ==0.3.10
36
+ Requires-Dist: tensorneko-util ==0.3.12
37
37
  Requires-Dist: pysoundfile >=0.9.0 ; platform_system == "Windows"
38
38
 
39
39
  <h1 style="text-align: center">TensorNeko</h1>
@@ -72,6 +72,11 @@ To use the library without PyTorch and PyTorch Lightning, you can install the ut
72
72
  pip install tensorneko_util
73
73
  ```
74
74
 
75
+ Some cpu bound functions are implemented by `pyo3`, and you can install the optimized version with below command.
76
+ ```shell
77
+ pip install tensorneko_lib
78
+ ```
79
+
75
80
  ## Neko Layers, Modules and Architectures
76
81
 
77
82
  Build an MLP with linear layers. The activation and normalization will be placed in the hidden layers.
@@ -2,7 +2,7 @@ tensorneko/__init__.py,sha256=lLVC4StQ5q9OFJTceNrJbj-CIFHFMRvFQyGYJTjuRM4,812
2
2
  tensorneko/neko_model.py,sha256=QTbdOAg9ki0ix6mDL_Qu8Wmd5WJOoUFF3M1SXEp3KGc,10551
3
3
  tensorneko/neko_module.py,sha256=qELXvguSjWo_NvcRQibiFl0Qauzd9JWLSnT4dbGNS3Y,1473
4
4
  tensorneko/neko_trainer.py,sha256=JC8qoKSZ5ngz3grf3S0SjvIFVktDIP_GExth5aFfbGA,10074
5
- tensorneko/version.txt,sha256=apxBfLVXDP1RFR7rEa3Nef0WFNWj80QwbCsJ5ZStFiM,6
5
+ tensorneko/version.txt,sha256=_hgtyo8QjKpIz7Q25ZNWKcEobB5vDhbZZ42IVY16MxA,6
6
6
  tensorneko/arch/__init__.py,sha256=w4lTUeyBIZelrnSjlBFWUF0erzOmBFl9FqeWQuSOyKs,248
7
7
  tensorneko/arch/auto_encoder.py,sha256=j6PWWyaNYaYNtw_zZ9ikzhCASqe9viXR3JGBIXSK92Y,2137
8
8
  tensorneko/arch/binary_classifier.py,sha256=1MkEbReXKLdDksRG5Rsife40grJk08EVDcNKp54Xvb4,2316
@@ -46,7 +46,7 @@ tensorneko/layer/__init__.py,sha256=HHCBzwR-8UEVsrUKz8j_dhQSVGRASg0flLc_pyG1JN0,
46
46
  tensorneko/layer/aggregation.py,sha256=ykH6u-NLJx4Yesu_BLWa6T-vWIYFzJXJV1Txrbz3mPE,1177
47
47
  tensorneko/layer/attention.py,sha256=sNC6gZgZaeHqUAfzrPh0Vefp7T6nc1gFvrreuOL7wUg,6360
48
48
  tensorneko/layer/concatenate.py,sha256=edQqDvC-8qBOqhqCu96fh4l75uS9GoQmJFZmG8HR_gg,1574
49
- tensorneko/layer/conv.py,sha256=c0XLcf2hRvyv6hMj4irIAYM0JyPzpv7tJBIW0Dl_sw8,5904
49
+ tensorneko/layer/conv.py,sha256=RwwS3GIQnx8uZL33ZLH7Ai2XRmC2JnLfZp2fqOy7R1A,5853
50
50
  tensorneko/layer/linear.py,sha256=NKIzSmSodk0wftu-f-6aSPazJ3X-eduRkZdLMMBjN_8,3283
51
51
  tensorneko/layer/log.py,sha256=UN7xgfzC7tF4P856taRtVgVHjc5CTTZqXYODvw6DhKQ,716
52
52
  tensorneko/layer/masked_conv2d.py,sha256=4DWjQ_Wc8lncYfk2Iur_M5V0mByvaQ2JZlOGRm29XLE,4796
@@ -72,7 +72,7 @@ tensorneko/preprocess/enum.py,sha256=Wp5qFaUjea5XU4o3N0WxUd-qfzI-m5vr4ZWSqWjELb4
72
72
  tensorneko/preprocess/pad.py,sha256=b4IbbhGNRotZ7weZcKA7hfDqSixPo5KjM6khnqzaeUA,3238
73
73
  tensorneko/preprocess/resize.py,sha256=hitMlzVnN6n_8nEJwxy4C4ErZrTwpM86QGnYewsrmf8,3469
74
74
  tensorneko/preprocess/face_detector/__init__.py,sha256=_ktIfUZqGTX0hk7RBgKf-zHwG2n9KRH4RS7rjuOI8Bo,262
75
- tensorneko/util/__init__.py,sha256=YCXP1tHeFKEF_NhZP9ZzRDeRx7p5oKOoJ0y7LBAKcL4,2070
75
+ tensorneko/util/__init__.py,sha256=ztsBVn3NLJanwcYyNYyLtUnws6xLcgP3oHMpkjUQh1o,2172
76
76
  tensorneko/util/configuration.py,sha256=xXeAjDh1FCNTmSPwDdkL-uH-ULfzFF6Fg0LT7gsZ6nQ,2510
77
77
  tensorneko/util/dispatched_misc.py,sha256=_0Go7XezdYB7bpMnCs1MDD_6mPNoWP5qt8DoKuPxynI,997
78
78
  tensorneko/util/misc.py,sha256=LEvACtGDOX43iK86A8-Cek0S9rbXFR0AtTP1edE3XDI,4701
@@ -84,8 +84,8 @@ tensorneko/visualization/log_graph.py,sha256=NvOwWVc_petXWYdgaHosPFLa43sHBeacbYc
84
84
  tensorneko/visualization/matplotlib.py,sha256=xs9Ssc44ojZX65QU8-fftA7Ug_pBuZ3TBtM8vETNq9w,1568
85
85
  tensorneko/visualization/image_browser/__init__.py,sha256=AtykhAE3bXQS6SOWbeYFeeUE9ts9XOFMvrL31z0LoMg,63
86
86
  tensorneko/visualization/watcher/__init__.py,sha256=Nq752qIYvfRUZ8VctKQRSqhxh5KmFbWcqPfZlijVx6s,379
87
- tensorneko-0.3.10.dist-info/LICENSE,sha256=Vd75kwgJpVuMnCRBWasQzceMlXt4YQL13ikBLy8G5h0,1067
88
- tensorneko-0.3.10.dist-info/METADATA,sha256=hHoyqdXL1Eb-npgPwhTi5GjsPShdnh6V6kIRX6XKIQ8,18906
89
- tensorneko-0.3.10.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
90
- tensorneko-0.3.10.dist-info/top_level.txt,sha256=sZHwlP0iyk7_zHuhRHzSBkdY9yEgyC48f6UVuZ6CvqE,11
91
- tensorneko-0.3.10.dist-info/RECORD,,
87
+ tensorneko-0.3.12.dist-info/LICENSE,sha256=Vd75kwgJpVuMnCRBWasQzceMlXt4YQL13ikBLy8G5h0,1067
88
+ tensorneko-0.3.12.dist-info/METADATA,sha256=uUgd_ZqIZDu5O7cLceWJnQOW8FVGV6dXdjOK9nXux-Q,19061
89
+ tensorneko-0.3.12.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
90
+ tensorneko-0.3.12.dist-info/top_level.txt,sha256=sZHwlP0iyk7_zHuhRHzSBkdY9yEgyC48f6UVuZ6CvqE,11
91
+ tensorneko-0.3.12.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: bdist_wheel (0.43.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5