florch 0.2.1__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 (119) hide show
  1. florch-0.2.1/.github/workflows/python-publish.yml +35 -0
  2. florch-0.2.1/LICENSE +21 -0
  3. florch-0.2.1/PKG-INFO +30 -0
  4. florch-0.2.1/README.md +3 -0
  5. florch-0.2.1/docs/Makefile +20 -0
  6. florch-0.2.1/docs/_build/.buildinfo +4 -0
  7. florch-0.2.1/docs/_build/.doctrees/api/fleras/EasyDict.__setattr__.doctree +0 -0
  8. florch-0.2.1/docs/_build/.doctrees/api/fleras/EasyDict.__setitem__.doctree +0 -0
  9. florch-0.2.1/docs/_build/.doctrees/api/fleras/EasyDict.doctree +0 -0
  10. florch-0.2.1/docs/_build/.doctrees/api/fleras/EasyDict.pop.doctree +0 -0
  11. florch-0.2.1/docs/_build/.doctrees/api/fleras/EasyDict.update.doctree +0 -0
  12. florch-0.2.1/docs/_build/.doctrees/api/fleras/TrainingJob.doctree +0 -0
  13. florch-0.2.1/docs/_build/.doctrees/api/fleras/fused_renorm/BatchNormalization.doctree +0 -0
  14. florch-0.2.1/docs/_build/.doctrees/api/fleras/fused_renorm/index.doctree +0 -0
  15. florch-0.2.1/docs/_build/.doctrees/api/fleras/index.doctree +0 -0
  16. florch-0.2.1/docs/_build/.doctrees/api/index.doctree +0 -0
  17. florch-0.2.1/docs/_build/.doctrees/environment.pickle +0 -0
  18. florch-0.2.1/docs/_build/.doctrees/index.doctree +0 -0
  19. florch-0.2.1/docs/_build/_sources/api/fleras/EasyDict.__setattr__.rst.txt +9 -0
  20. florch-0.2.1/docs/_build/_sources/api/fleras/EasyDict.__setitem__.rst.txt +8 -0
  21. florch-0.2.1/docs/_build/_sources/api/fleras/EasyDict.pop.rst.txt +12 -0
  22. florch-0.2.1/docs/_build/_sources/api/fleras/EasyDict.rst.txt +48 -0
  23. florch-0.2.1/docs/_build/_sources/api/fleras/EasyDict.update.rst.txt +12 -0
  24. florch-0.2.1/docs/_build/_sources/api/fleras/TrainingJob.rst.txt +10 -0
  25. florch-0.2.1/docs/_build/_sources/api/fleras/fused_renorm/BatchNormalization.rst.txt +99 -0
  26. florch-0.2.1/docs/_build/_sources/api/fleras/fused_renorm/index.rst.txt +26 -0
  27. florch-0.2.1/docs/_build/_sources/api/fleras/index.rst.txt +37 -0
  28. florch-0.2.1/docs/_build/_sources/api/index.rst.txt +7 -0
  29. florch-0.2.1/docs/_build/_sources/index.rst.txt +16 -0
  30. florch-0.2.1/docs/_build/_static/basic.css +914 -0
  31. florch-0.2.1/docs/_build/_static/doctools.js +149 -0
  32. florch-0.2.1/docs/_build/_static/documentation_options.js +13 -0
  33. florch-0.2.1/docs/_build/_static/file.png +0 -0
  34. florch-0.2.1/docs/_build/_static/graphviz.css +12 -0
  35. florch-0.2.1/docs/_build/_static/language_data.js +192 -0
  36. florch-0.2.1/docs/_build/_static/minus.png +0 -0
  37. florch-0.2.1/docs/_build/_static/plus.png +0 -0
  38. florch-0.2.1/docs/_build/_static/pygments.css +152 -0
  39. florch-0.2.1/docs/_build/_static/scripts/bootstrap.js +3 -0
  40. florch-0.2.1/docs/_build/_static/scripts/bootstrap.js.LICENSE.txt +5 -0
  41. florch-0.2.1/docs/_build/_static/scripts/bootstrap.js.map +1 -0
  42. florch-0.2.1/docs/_build/_static/scripts/fontawesome.js +3 -0
  43. florch-0.2.1/docs/_build/_static/scripts/fontawesome.js.LICENSE.txt +5 -0
  44. florch-0.2.1/docs/_build/_static/scripts/fontawesome.js.map +1 -0
  45. florch-0.2.1/docs/_build/_static/scripts/pydata-sphinx-theme.js +2 -0
  46. florch-0.2.1/docs/_build/_static/scripts/pydata-sphinx-theme.js.map +1 -0
  47. florch-0.2.1/docs/_build/_static/searchtools.js +632 -0
  48. florch-0.2.1/docs/_build/_static/sphinx_highlight.js +154 -0
  49. florch-0.2.1/docs/_build/_static/styles/my_theme.css +64 -0
  50. florch-0.2.1/docs/_build/_static/styles/pydata-sphinx-theme.css +32 -0
  51. florch-0.2.1/docs/_build/_static/styles/pydata-sphinx-theme.css.map +1 -0
  52. florch-0.2.1/docs/_build/_static/styles/theme.css +2 -0
  53. florch-0.2.1/docs/_build/_static/vendor/fontawesome/webfonts/fa-brands-400.ttf +0 -0
  54. florch-0.2.1/docs/_build/_static/vendor/fontawesome/webfonts/fa-brands-400.woff2 +0 -0
  55. florch-0.2.1/docs/_build/_static/vendor/fontawesome/webfonts/fa-regular-400.ttf +0 -0
  56. florch-0.2.1/docs/_build/_static/vendor/fontawesome/webfonts/fa-regular-400.woff2 +0 -0
  57. florch-0.2.1/docs/_build/_static/vendor/fontawesome/webfonts/fa-solid-900.ttf +0 -0
  58. florch-0.2.1/docs/_build/_static/vendor/fontawesome/webfonts/fa-solid-900.woff2 +0 -0
  59. florch-0.2.1/docs/_build/_static/webpack-macros.html +24 -0
  60. florch-0.2.1/docs/_build/api/fleras/EasyDict.__setattr__.html +444 -0
  61. florch-0.2.1/docs/_build/api/fleras/EasyDict.__setitem__.html +444 -0
  62. florch-0.2.1/docs/_build/api/fleras/EasyDict.html +488 -0
  63. florch-0.2.1/docs/_build/api/fleras/EasyDict.pop.html +436 -0
  64. florch-0.2.1/docs/_build/api/fleras/EasyDict.update.html +447 -0
  65. florch-0.2.1/docs/_build/api/fleras/TrainingJob.html +441 -0
  66. florch-0.2.1/docs/_build/api/fleras/fused_renorm/BatchNormalization.html +542 -0
  67. florch-0.2.1/docs/_build/api/fleras/fused_renorm/index.html +449 -0
  68. florch-0.2.1/docs/_build/api/fleras/index.html +458 -0
  69. florch-0.2.1/docs/_build/api/index.html +425 -0
  70. florch-0.2.1/docs/_build/genindex.html +408 -0
  71. florch-0.2.1/docs/_build/index.html +394 -0
  72. florch-0.2.1/docs/_build/objects.inv +0 -0
  73. florch-0.2.1/docs/_build/py-modindex.html +352 -0
  74. florch-0.2.1/docs/_build/search.html +355 -0
  75. florch-0.2.1/docs/_build/searchindex.js +1 -0
  76. florch-0.2.1/docs/_static/styles/my_theme.css +64 -0
  77. florch-0.2.1/docs/_templates/autoapi/index.rst +9 -0
  78. florch-0.2.1/docs/_templates/autoapi/python/attribute.rst +1 -0
  79. florch-0.2.1/docs/_templates/autoapi/python/class.rst +121 -0
  80. florch-0.2.1/docs/_templates/autoapi/python/data.rst +40 -0
  81. florch-0.2.1/docs/_templates/autoapi/python/exception.rst +1 -0
  82. florch-0.2.1/docs/_templates/autoapi/python/function.rst +23 -0
  83. florch-0.2.1/docs/_templates/autoapi/python/method.rst +23 -0
  84. florch-0.2.1/docs/_templates/autoapi/python/module.rst +158 -0
  85. florch-0.2.1/docs/_templates/autoapi/python/package.rst +1 -0
  86. florch-0.2.1/docs/_templates/autoapi/python/property.rst +23 -0
  87. florch-0.2.1/docs/abbrev_long.bib +207 -0
  88. florch-0.2.1/docs/conf.py +111 -0
  89. florch-0.2.1/docs/conf_overrides.py +0 -0
  90. florch-0.2.1/docs/conf_spec.py +3 -0
  91. florch-0.2.1/docs/index.rst +16 -0
  92. florch-0.2.1/docs/make.bat +35 -0
  93. florch-0.2.1/docs/references.bib +0 -0
  94. florch-0.2.1/pyproject.toml +58 -0
  95. florch-0.2.1/setup.cfg +4 -0
  96. florch-0.2.1/src/florch/__init__.py +6 -0
  97. florch-0.2.1/src/florch/_version.py +21 -0
  98. florch-0.2.1/src/florch/callbacks.py +309 -0
  99. florch-0.2.1/src/florch/checkpointing.py +106 -0
  100. florch-0.2.1/src/florch/exceptions.py +8 -0
  101. florch-0.2.1/src/florch/layers/__init__.py +3 -0
  102. florch-0.2.1/src/florch/layers/batch_renorm.py +122 -0
  103. florch-0.2.1/src/florch/layers/bn_to_gn.py +47 -0
  104. florch-0.2.1/src/florch/layers/lambdalayer.py +10 -0
  105. florch-0.2.1/src/florch/layers/lora.py +138 -0
  106. florch-0.2.1/src/florch/layers/sigma_reparam.py +309 -0
  107. florch-0.2.1/src/florch/model_trainer.py +66 -0
  108. florch-0.2.1/src/florch/optimizers/__init__.py +0 -0
  109. florch-0.2.1/src/florch/parallel_map2.py +212 -0
  110. florch-0.2.1/src/florch/training_job.py +751 -0
  111. florch-0.2.1/src/florch/util/__init__.py +1 -0
  112. florch-0.2.1/src/florch/util/distribute_batch.py +47 -0
  113. florch-0.2.1/src/florch/util/easydict.py +35 -0
  114. florch-0.2.1/src/florch/util/misc.py +37 -0
  115. florch-0.2.1/src/florch.egg-info/PKG-INFO +30 -0
  116. florch-0.2.1/src/florch.egg-info/SOURCES.txt +117 -0
  117. florch-0.2.1/src/florch.egg-info/dependency_links.txt +1 -0
  118. florch-0.2.1/src/florch.egg-info/requires.txt +6 -0
  119. florch-0.2.1/src/florch.egg-info/top_level.txt +1 -0
@@ -0,0 +1,35 @@
1
+ name: Upload Python Package
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ permissions:
8
+ contents: read
9
+
10
+ jobs:
11
+ pypi-publish:
12
+ name: Upload release to PyPI
13
+ runs-on: ubuntu-latest
14
+ environment: pypi
15
+ permissions:
16
+ id-token: write
17
+ steps:
18
+ - name: Check out repository
19
+ uses: actions/checkout@v4
20
+ with:
21
+ fetch-depth: 0
22
+
23
+ - name: Set up Python
24
+ uses: actions/setup-python@v5
25
+ with:
26
+ python-version: "3.x"
27
+
28
+ - name: Install build dependencies
29
+ run: python -m pip install --upgrade build
30
+
31
+ - name: Build package distribution
32
+ run: python -m build --sdist
33
+
34
+ - name: Publish package distributions to PyPI
35
+ uses: pypa/gh-action-pypi-publish@release/v1
florch-0.2.1/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 István Sárándi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
florch-0.2.1/PKG-INFO ADDED
@@ -0,0 +1,30 @@
1
+ Metadata-Version: 2.4
2
+ Name: florch
3
+ Version: 0.2.1
4
+ Summary: Florch is a flexible training scaffolding library for PyTorch
5
+ Author-email: István Sárándi <istvan.sarandi@uni-tuebingen.de>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/isarandi/florch
8
+ Project-URL: Repository, https://github.com/isarandi/florch
9
+ Project-URL: Issues, https://github.com/isarandi/florch/issues
10
+ Project-URL: Author, https://istvansarandi.com
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Topic :: Software Development :: Libraries
14
+ Classifier: Programming Language :: Python
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Operating System :: POSIX :: Linux
17
+ Requires-Python: >=3.9
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+ Requires-Dist: numpy<2.0
21
+ Requires-Dist: wandb
22
+ Requires-Dist: torch
23
+ Requires-Dist: torchdata
24
+ Requires-Dist: more-itertools
25
+ Requires-Dist: simplepyutils
26
+ Dynamic: license-file
27
+
28
+ # florch
29
+
30
+ Florch allows flexible training of PyTorch models. Modeled after my previous project [fleras](https://github.com/isarandi/fleras), which was built on top of Keras.
florch-0.2.1/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # florch
2
+
3
+ Florch allows flexible training of PyTorch models. Modeled after my previous project [fleras](https://github.com/isarandi/fleras), which was built on top of Keras.
@@ -0,0 +1,20 @@
1
+ # Minimal makefile for Sphinx documentation
2
+ #
3
+
4
+ # You can set these variables from the command line, and also
5
+ # from the environment for the first two.
6
+ SPHINXOPTS ?=
7
+ SPHINXBUILD ?= sphinx-build
8
+ SOURCEDIR = .
9
+ BUILDDIR = _build
10
+
11
+ # Put it first so that "make" without argument is like "make help".
12
+ help:
13
+ @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14
+
15
+ .PHONY: help Makefile
16
+
17
+ # Catch-all target: route all unknown targets to Sphinx using the new
18
+ # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19
+ %: Makefile
20
+ @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@@ -0,0 +1,4 @@
1
+ # Sphinx build info version 1
2
+ # This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
3
+ config: 5080987bdf7ce91358013f044494f285
4
+ tags: 645f666f9bcd5a90fca523b33c5a78b7
@@ -0,0 +1,9 @@
1
+ __setattr__
2
+ ===========
3
+
4
+ .. py:method:: fleras.EasyDict.__setattr__(name, value)
5
+
6
+ Implement setattr(self, name, value).
7
+
8
+
9
+ .. footbibliography::
@@ -0,0 +1,8 @@
1
+ __setitem__
2
+ ===========
3
+
4
+ .. py:attribute:: fleras.EasyDict.__setitem__
5
+
6
+ Set self[key] to value.
7
+
8
+ .. footbibliography::
@@ -0,0 +1,12 @@
1
+ pop
2
+ ===
3
+
4
+ .. py:method:: fleras.EasyDict.pop(k, d=None)
5
+
6
+ D.pop(k[,d]) -> v, remove specified key and return the corresponding value.
7
+
8
+ If the key is not found, return the default if given; otherwise,
9
+ raise a KeyError.
10
+
11
+
12
+ .. footbibliography::
@@ -0,0 +1,48 @@
1
+ EasyDict
2
+ ========
3
+
4
+ .. toctree::
5
+ :hidden:
6
+
7
+ /api/fleras/EasyDict.__setattr__
8
+ /api/fleras/EasyDict.__setitem__
9
+ /api/fleras/EasyDict.update
10
+ /api/fleras/EasyDict.pop
11
+
12
+ .. py:class:: fleras.EasyDict(d=None, **kwargs)
13
+
14
+ Bases: :py:obj:`dict`
15
+
16
+
17
+ dict() -> new empty dictionary
18
+ dict(mapping) -> new dictionary initialized from a mapping object's
19
+ (key, value) pairs
20
+ dict(iterable) -> new dictionary initialized as if via:
21
+ d = {}
22
+ for k, v in iterable:
23
+ d[k] = v
24
+ dict(**kwargs) -> new dictionary initialized with the name=value pairs
25
+ in the keyword argument list. For example: dict(one=1, two=2)
26
+
27
+ Attributes
28
+ ----------
29
+
30
+ .. autoapisummary::
31
+
32
+ fleras.EasyDict.__setitem__
33
+
34
+
35
+ Methods
36
+ -------
37
+
38
+ .. autoapisummary::
39
+
40
+ fleras.EasyDict.__setattr__
41
+ fleras.EasyDict.update
42
+ fleras.EasyDict.pop
43
+
44
+
45
+
46
+
47
+
48
+ .. footbibliography::
@@ -0,0 +1,12 @@
1
+ update
2
+ ======
3
+
4
+ .. py:method:: fleras.EasyDict.update(e=None, **f)
5
+
6
+ D.update([E, ]**F) -> None. Update D from dict/iterable E and F.
7
+ If E is present and has a .keys() method, then does: for k in E: D[k] = E[k]
8
+ If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v
9
+ In either case, this is followed by: for k in F: D[k] = F[k]
10
+
11
+
12
+ .. footbibliography::
@@ -0,0 +1,10 @@
1
+ TrainingJob
2
+ ===========
3
+
4
+ .. py:class:: fleras.TrainingJob(wandb_project, wandb_config, logdir, init_path, load_path, training_steps, stop_step, grad_accum_steps, force_grad_accum, loss_scale, dynamic_loss_scale, ema_momentum, finetune_in_inference_mode, validate_period, checkpoint_dir, checkpoint_period, multi_gpu, seed, n_completed_steps=None, workers=None, parallel_build_data=True)
5
+
6
+ Encapsulates the input pipeline, model construction, checkpointing and training.
7
+
8
+
9
+
10
+ .. footbibliography::
@@ -0,0 +1,99 @@
1
+ BatchNormalization
2
+ ==================
3
+
4
+ .. py:class:: fleras.fused_renorm.BatchNormalization(axis=-1, momentum=0.99, epsilon=0.001, center=True, scale=True, beta_initializer='zeros', gamma_initializer='ones', moving_mean_initializer='zeros', moving_variance_initializer='ones', beta_regularizer=None, gamma_regularizer=None, beta_constraint=None, gamma_constraint=None, renorm_clipping=None, trainable=True, name=None, **kwargs)
5
+
6
+ Bases: :py:obj:`tensorflow.keras.layers.Layer`
7
+
8
+
9
+ Layer that normalizes its inputs.
10
+
11
+ Batch normalization applies a transformation that maintains the mean output
12
+ close to 0 and the output standard deviation close to 1.
13
+
14
+ Importantly, batch normalization works differently during training and
15
+ during inference.
16
+
17
+ **During training** (i.e. when using `fit()` or when calling the layer/model
18
+ with the argument `training=True`), the layer normalizes its output using
19
+ the mean and standard deviation of the current batch of inputs. That is to
20
+ say, for each channel being normalized, the layer returns
21
+ `gamma * (batch - mean(batch)) / sqrt(var(batch) + epsilon) + beta`, where:
22
+
23
+ - `epsilon` is small constant (configurable as part of the constructor
24
+ arguments)
25
+ - `gamma` is a learned scaling factor (initialized as 1), which
26
+ can be disabled by passing `scale=False` to the constructor.
27
+ - `beta` is a learned offset factor (initialized as 0), which
28
+ can be disabled by passing `center=False` to the constructor.
29
+
30
+ **During inference** (i.e. when using `evaluate()` or `predict()`) or when
31
+ calling the layer/model with the argument `training=False` (which is the
32
+ default), the layer normalizes its output using a moving average of the
33
+ mean and standard deviation of the batches it has seen during training. That
34
+ is to say, it returns
35
+ `gamma * (batch - self.moving_mean) / sqrt(self.moving_var+epsilon) + beta`.
36
+
37
+ `self.moving_mean` and `self.moving_var` are non-trainable variables that
38
+ are updated each time the layer in called in training mode, as such:
39
+
40
+ - `moving_mean = moving_mean * momentum + mean(batch) * (1 - momentum)`
41
+ - `moving_var = moving_var * momentum + var(batch) * (1 - momentum)`
42
+
43
+ As such, the layer will only normalize its inputs during inference
44
+ *after having been trained on data that has similar statistics as the
45
+ inference data*.
46
+
47
+ :param axis: Integer or a list of integers, the axis that should be normalized
48
+ (typically the features axis). For instance, after a `Conv2D` layer with
49
+ `data_format="channels_first"`, set `axis=1` in `BatchNormalization`.
50
+ :param momentum: Momentum for the moving average.
51
+ :param epsilon: Small float added to variance to avoid dividing by zero.
52
+ :param center: If True, add offset of `beta` to normalized tensor. If False,
53
+ `beta` is ignored.
54
+ :param scale: If True, multiply by `gamma`. If False, `gamma` is not used. When
55
+ the next layer is linear (also e.g. `nn.relu`), this can be disabled
56
+ since the scaling will be done by the next layer.
57
+ :param beta_initializer: Initializer for the beta weight.
58
+ :param gamma_initializer: Initializer for the gamma weight.
59
+ :param moving_mean_initializer: Initializer for the moving mean.
60
+ :param moving_variance_initializer: Initializer for the moving variance.
61
+ :param beta_regularizer: Optional regularizer for the beta weight.
62
+ :param gamma_regularizer: Optional regularizer for the gamma weight.
63
+ :param beta_constraint: Optional constraint for the beta weight.
64
+ :param gamma_constraint: Optional constraint for the gamma weight.
65
+ :param renorm_clipping: A dictionary that may map keys 'rmax', 'rmin', 'dmax' to
66
+ scalar `Tensors` used to clip the renorm correction. The correction `(r,
67
+ d)` is used as `corrected_value = normalized_value * r + d`, with `r`
68
+ clipped to [rmin, rmax], and `d` to [-dmax, dmax]. Missing rmax, rmin,
69
+ dmax are set to inf, 0, inf, respectively.
70
+ :param renorm_momentum: Momentum used to update the moving means and standard
71
+ deviations with renorm. Unlike `momentum`, this affects training and
72
+ should be neither too small (which would add noise) nor too large (which
73
+ would give stale estimates). Note that `momentum` is still applied to
74
+ get the means and variances for inference.
75
+ :param trainable: Boolean, if `True` the variables will be marked as trainable.
76
+
77
+ Call arguments:
78
+ inputs: Input tensor (of any rank).
79
+ training: Python boolean indicating whether the layer should behave in
80
+ training mode or in inference mode.
81
+ - `training=True`: The layer will normalize its inputs using the mean
82
+ and variance of the current batch of inputs.
83
+ - `training=False`: The layer will normalize its inputs using the mean
84
+ and variance of its moving statistics, learned during training.
85
+ mask: Binary tensor of shape broadcastable to `inputs` tensor, indicating
86
+ the positions for which the mean and variance should be computed.
87
+
88
+ Input shape: Arbitrary. Use the keyword argument `input_shape` (tuple of
89
+ integers, does not include the samples axis) when using this layer as the
90
+ first layer in a model.
91
+
92
+ Output shape: Same shape as input.
93
+
94
+ Reference:
95
+ - [Ioffe and Szegedy, 2015](https://arxiv.org/abs/1502.03167).
96
+
97
+
98
+
99
+ .. footbibliography::
@@ -0,0 +1,26 @@
1
+ fleras.fused_renorm
2
+ ===================
3
+
4
+ .. py:module:: fleras.fused_renorm
5
+
6
+ .. autoapi-nested-parse::
7
+
8
+ The V2 implementation of Normalization layers.
9
+
10
+
11
+
12
+ Classes
13
+ -------
14
+
15
+ .. toctree::
16
+ :hidden:
17
+
18
+ /api/fleras/fused_renorm/BatchNormalization
19
+
20
+ .. autoapisummary::
21
+
22
+ fleras.fused_renorm.BatchNormalization
23
+
24
+
25
+
26
+ .. footbibliography::
@@ -0,0 +1,37 @@
1
+ fleras
2
+ ======
3
+
4
+ .. py:module:: fleras
5
+
6
+ .. autoapi-nested-parse::
7
+
8
+ Fleras helps make Keras more flexible.
9
+
10
+
11
+
12
+ Submodules
13
+ ----------
14
+
15
+ .. toctree::
16
+ :maxdepth: 1
17
+
18
+ /api/fleras/fused_renorm/index
19
+
20
+
21
+ Classes
22
+ -------
23
+
24
+ .. toctree::
25
+ :hidden:
26
+
27
+ /api/fleras/TrainingJob
28
+ /api/fleras/EasyDict
29
+
30
+ .. autoapisummary::
31
+
32
+ fleras.TrainingJob
33
+ fleras.EasyDict
34
+
35
+
36
+
37
+ .. footbibliography::
@@ -0,0 +1,7 @@
1
+ API Reference
2
+ =============
3
+
4
+ .. toctree::
5
+ :titlesonly:
6
+
7
+ /api/fleras/index
@@ -0,0 +1,16 @@
1
+ Documentation
2
+ =====================
3
+
4
+
5
+ .. toctree::
6
+ :maxdepth: 3
7
+ :caption: Contents
8
+
9
+ modules
10
+
11
+ Indices and tables
12
+ ==================
13
+
14
+ * :ref:`genindex`
15
+ * :ref:`modindex`
16
+ * :ref:`search`