MCPcopy Create free account
hub / github.com/google-research/language / padded_shapes

Method padded_shapes

language/serene/preprocessing.py:154–160  ·  view source on GitHub ↗

Return padding shapes for use by tf.data.Dataset.padded_batch. Returns: Padding shapes used by the encoder

(self)

Source from the content-addressed store, hash-verified

152
153 @abc.abstractmethod
154 def padded_shapes(self):
155 """Return padding shapes for use by tf.data.Dataset.padded_batch.
156
157 Returns:
158 Padding shapes used by the encoder
159 """
160 raise NotImplementedError()
161
162 @abc.abstractmethod
163 def compute_input_shapes(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected