MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / __init__

Method __init__

tensorpack/dataflow/imgaug/base.py:78–84  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

76 """
77
78 def __init__(self):
79 self.reset_state()
80
81 # only available on Unix after Python 3.7
82 if hasattr(os, 'register_at_fork'):
83 os.register_at_fork(
84 after_in_child=lambda: _reset_augmentor_after_fork(weakref.ref(self)))
85
86 def _init(self, params=None):
87 if params:

Callers

nothing calls this directly

Calls 2

reset_stateMethod · 0.95

Tested by

no test coverage detected