MCPcopy Index your code
hub / github.com/tensorflow/datasets / setup

Method setup

tensorflow_datasets/core/decode/base.py:56–67  ·  view source on GitHub ↗

Transformation contructor. The initialization of decode object is deferred because the objects only know the builder/features on which it is used after it has been constructed, the initialization is done in this function. Args: feature: `tfds.features.FeatureConnector`, the f

(self, *, feature)

Source from the content-addressed store, hash-verified

54 return self._feature
55
56 def setup(self, *, feature):
57 """Transformation contructor.
58
59 The initialization of decode object is deferred because the objects only
60 know the builder/features on which it is used after it has been
61 constructed, the initialization is done in this function.
62
63 Args:
64 feature: `tfds.features.FeatureConnector`, the feature to which is applied
65 this transformation.
66 """
67 self._feature = feature
68
69 @property
70 def dtype(self):

Callers 2

setup.pyFile · 0.80
_decode_featureFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected