MCPcopy
hub / github.com/tensorlayer/TensorLayer / build

Method build

tensorlayer/layers/embedding.py:377–389  ·  view source on GitHub ↗

Parameters ---------- inputs_shape : tuple the shape of inputs tensor

(self, inputs_shape)

Source from the content-addressed store, hash-verified

375 return s.format(classname=self.__class__.__name__, **self.__dict__)
376
377 def build(self, inputs_shape):
378 """
379 Parameters
380 ----------
381 inputs_shape : tuple
382 the shape of inputs tensor
383 """
384
385 self.embeddings = self._get_weights(
386 "embeddings",
387 shape=(self.vocabulary_size, self.embedding_size),
388 init=self.E_init,
389 )
390
391 # @tf.function
392 def forward(self, inputs):

Callers 1

__init__Method · 0.95

Calls 1

_get_weightsMethod · 0.80

Tested by

no test coverage detected