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

Method __repr__

tensorpack/dataflow/imgaug/transform.py:94–99  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

92 raise AttributeError("Transform object has no attribute {}".format(name))
93
94 def __repr__(self):
95 try:
96 return _default_repr(self)
97 except AssertionError as e:
98 log_once(e.args[0], 'warn')
99 return super(Transform, self).__repr__()
100
101 __str__ = __repr__
102

Callers 1

__str__Method · 0.45

Calls 2

_default_reprFunction · 0.85
log_onceFunction · 0.85

Tested by

no test coverage detected