mttf 1.1.3__py3-none-any.whl → 1.1.5__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.
Potentially problematic release.
This version of mttf might be problematic. Click here for more details.
- mt/tf/init.py +3 -3
- mt/tf/keras_applications/mobilenet_v3_split.py +21 -7
- mt/tf/version.py +1 -1
- {mttf-1.1.3.dist-info → mttf-1.1.5.dist-info}/METADATA +3 -3
- {mttf-1.1.3.dist-info → mttf-1.1.5.dist-info}/RECORD +14 -14
- {mttf-1.1.3.dist-info → mttf-1.1.5.dist-info}/WHEEL +1 -1
- {mttf-1.1.3.data → mttf-1.1.5.data}/scripts/dmt_pipi.sh +0 -0
- {mttf-1.1.3.data → mttf-1.1.5.data}/scripts/dmt_twineu.sh +0 -0
- {mttf-1.1.3.data → mttf-1.1.5.data}/scripts/pipi.sh +0 -0
- {mttf-1.1.3.data → mttf-1.1.5.data}/scripts/wml_nexus.py +0 -0
- {mttf-1.1.3.data → mttf-1.1.5.data}/scripts/wml_pipi.sh +0 -0
- {mttf-1.1.3.data → mttf-1.1.5.data}/scripts/wml_twineu.sh +0 -0
- {mttf-1.1.3.dist-info → mttf-1.1.5.dist-info}/licenses/LICENSE +0 -0
- {mttf-1.1.3.dist-info → mttf-1.1.5.dist-info}/top_level.txt +0 -0
mt/tf/init.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Initialises TensorFlow, monkey-patching if necessary."""
|
|
2
2
|
|
|
3
|
-
from packaging import
|
|
3
|
+
from packaging.version import Version
|
|
4
4
|
|
|
5
5
|
__all__ = ["init"]
|
|
6
6
|
|
|
@@ -11,9 +11,9 @@ def init():
|
|
|
11
11
|
import tensorflow
|
|
12
12
|
import sys
|
|
13
13
|
|
|
14
|
-
tf_ver =
|
|
14
|
+
tf_ver = Version(tensorflow.__version__)
|
|
15
15
|
|
|
16
|
-
if tf_ver <
|
|
16
|
+
if tf_ver < Version("2.8"):
|
|
17
17
|
raise ImportError(
|
|
18
18
|
f"The minimum TF version that mttf supports is 2.8. Your TF is {tf_ver}. "
|
|
19
19
|
"Please upgrade."
|
|
@@ -69,21 +69,35 @@ except ImportError:
|
|
|
69
69
|
_inverted_res_block,
|
|
70
70
|
)
|
|
71
71
|
|
|
72
|
-
|
|
73
72
|
try:
|
|
74
73
|
from keras import backend
|
|
74
|
+
except ImportError:
|
|
75
|
+
from tensorflow.python.keras import backend
|
|
76
|
+
|
|
77
|
+
try:
|
|
75
78
|
from keras import models
|
|
79
|
+
except ImportError:
|
|
80
|
+
from tensorflow.python.keras import models
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
try:
|
|
76
84
|
from keras.layers import VersionAwareLayers
|
|
85
|
+
|
|
86
|
+
layers = VersionAwareLayers()
|
|
87
|
+
except ImportError:
|
|
88
|
+
try:
|
|
89
|
+
from keras import layers
|
|
90
|
+
except ImportError:
|
|
91
|
+
from tensorflow.python.keras.layers import VersionAwareLayers
|
|
92
|
+
|
|
93
|
+
layers = VersionAwareLayers()
|
|
94
|
+
|
|
95
|
+
try:
|
|
77
96
|
from keras.utils import data_utils, layer_utils
|
|
78
97
|
except ImportError:
|
|
79
|
-
from tensorflow.python.keras import backend
|
|
80
|
-
from tensorflow.python.keras import models
|
|
81
|
-
from tensorflow.python.keras.layers import VersionAwareLayers
|
|
82
98
|
from tensorflow.python.keras.utils import data_utils, layer_utils
|
|
83
|
-
from tensorflow.python.platform import tf_logging as logging
|
|
84
99
|
|
|
85
|
-
|
|
86
|
-
layers = VersionAwareLayers()
|
|
100
|
+
from tensorflow.python.platform import tf_logging as logging
|
|
87
101
|
|
|
88
102
|
|
|
89
103
|
def MobileNetV3Input(
|
mt/tf/version.py
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mttf
|
|
3
|
-
Version: 1.1.
|
|
4
|
-
Summary: A package to detect and monkey-patch TensorFlow, for Minh-Tri Pham
|
|
3
|
+
Version: 1.1.5
|
|
4
|
+
Summary: A package to detect and monkey-patch TensorFlow and Keras, for Minh-Tri Pham
|
|
5
5
|
Home-page: https://github.com/inteplus/mttf
|
|
6
6
|
Author: ['Minh-Tri Pham']
|
|
7
7
|
Project-URL: Documentation, https://mtdoc.readthedocs.io/en/latest/mt.tf/mt.tf.html
|
|
8
8
|
Project-URL: Source Code, https://github.com/inteplus/mttf
|
|
9
9
|
License-File: LICENSE
|
|
10
10
|
Requires-Dist: pyyaml
|
|
11
|
-
Requires-Dist: mtbase>=4.32
|
|
11
|
+
Requires-Dist: mtbase>=4.32.3
|
|
12
12
|
Requires-Dist: mtnet>=0.3.2
|
|
13
13
|
Dynamic: author
|
|
14
14
|
Dynamic: home-page
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
mt/tf/__init__.py,sha256=M8xiJNdrAUJZgiZTOQOdfkehjO-CYzGpoxh5HVGBkms,338
|
|
2
|
-
mt/tf/init.py,sha256=
|
|
2
|
+
mt/tf/init.py,sha256=BUpw33uyA_DmeJjrN2fX4MIs8MynKxkwgc2oTGTqssU,1294
|
|
3
3
|
mt/tf/mttf_version.py,sha256=ha53i-H9pE-crufFttUECgXHwPvam07zMKzApUts1Gs,206
|
|
4
4
|
mt/tf/utils.py,sha256=Copl5VM0PpuFUchK-AcBuGO6QitDwHcEs4FruZb2GAI,2460
|
|
5
|
-
mt/tf/version.py,sha256=
|
|
5
|
+
mt/tf/version.py,sha256=2_3_n3SpC_2FgUHWv6ZkAnhLtvlhhn8MQuXgUGe03qU,206
|
|
6
6
|
mt/tf/keras_applications/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
|
-
mt/tf/keras_applications/mobilenet_v3_split.py,sha256=
|
|
7
|
+
mt/tf/keras_applications/mobilenet_v3_split.py,sha256=1oPB3EX3k3c7iju9Ksuw9xyv32-mOKPs3uy2Mk5tLd8,19716
|
|
8
8
|
mt/tf/keras_applications/mobilevit.py,sha256=VsKB_U-f9jwUEjpd0eq-YXL4rDsuAbKQ0yIzkbMfLzw,9949
|
|
9
9
|
mt/tf/keras_layers/__init__.py,sha256=fSfhKmDz4mIHUYXgRrditWY_aAkgWGM_KjmAilOauXg,578
|
|
10
10
|
mt/tf/keras_layers/counter.py,sha256=KsM25lRvxQZZUz0GLbeUNoPLwVoLF1MK0tQPn9-dVWQ,858
|
|
@@ -19,14 +19,14 @@ mt/tfc/__init__.py,sha256=XFXAbmEi5uTAuZj797cBqw9ZBnVy6ptxP0TTzVauMNk,8446
|
|
|
19
19
|
mt/tfg/__init__.py,sha256=6Ly2QImAyQTsg_ZszuAuK_L2n56v89Cix9yYmMVk0CM,304
|
|
20
20
|
mt/tfp/__init__.py,sha256=AQkGCkmDRwswEt3qoOSpxe-fZekx78sHHBs2ZVz33gc,383
|
|
21
21
|
mt/tfp/real_nvp.py,sha256=U9EmkXGqFcvtS2yeh5_RgbKlVKKlGFGklAb7Voyazz4,4440
|
|
22
|
-
mttf-1.1.
|
|
23
|
-
mttf-1.1.
|
|
24
|
-
mttf-1.1.
|
|
25
|
-
mttf-1.1.
|
|
26
|
-
mttf-1.1.
|
|
27
|
-
mttf-1.1.
|
|
28
|
-
mttf-1.1.
|
|
29
|
-
mttf-1.1.
|
|
30
|
-
mttf-1.1.
|
|
31
|
-
mttf-1.1.
|
|
32
|
-
mttf-1.1.
|
|
22
|
+
mttf-1.1.5.data/scripts/dmt_pipi.sh,sha256=NNsj4P332unHMqU4mAFjU9PQvxQ8TK5XQ42LC29IZY8,510
|
|
23
|
+
mttf-1.1.5.data/scripts/dmt_twineu.sh,sha256=KZhcYwuCW0c36tWcOgCe7uxJmS08rz-J6YNY76Exy4M,193
|
|
24
|
+
mttf-1.1.5.data/scripts/pipi.sh,sha256=kdo96bdaKq2QIa52Z4XFSiGPcbDm09SAU9cju6I2Lxo,289
|
|
25
|
+
mttf-1.1.5.data/scripts/wml_nexus.py,sha256=kW0ju8_kdXc4jOjhdzKiMsFuO1MNpHmu87skrhu9SEg,1492
|
|
26
|
+
mttf-1.1.5.data/scripts/wml_pipi.sh,sha256=CuidIcbuxyXSBNQqYRhCcSC8QbBaSGnQX0KAIFaIvKA,499
|
|
27
|
+
mttf-1.1.5.data/scripts/wml_twineu.sh,sha256=av1JLN765oOWC5LPkv2eSWIVof26y60601tMGkuYdb8,180
|
|
28
|
+
mttf-1.1.5.dist-info/licenses/LICENSE,sha256=e_JtcszdGZ2ZGfjcymTGrcxFj_9XPicZOVtnsrPvruk,1070
|
|
29
|
+
mttf-1.1.5.dist-info/METADATA,sha256=x3hD-T6kgdeBoB6EKTrWmrTPrmL_uM9NOs5q_Hed_Ns,567
|
|
30
|
+
mttf-1.1.5.dist-info/WHEEL,sha256=wXxTzcEDnjrTwFYjLPcsW_7_XihufBwmpiBeiXNBGEA,91
|
|
31
|
+
mttf-1.1.5.dist-info/top_level.txt,sha256=WcqGFu9cV7iMZg09iam8eNxUvGpLSKKF2Iubf6SJVOo,3
|
|
32
|
+
mttf-1.1.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|