MCPcopy Create free account
hub / github.com/awslabs/gap-text2sql / to

Method to

rat-sql-gap/seq2struct/resources/pretrained_embeddings.py:39–41  ·  view source on GitHub ↗

Transfer the pretrained embeddings to the given device.

(self, device)

Source from the content-addressed store, hash-verified

37
38 @abc.abstractmethod
39 def to(self, device):
40 '''Transfer the pretrained embeddings to the given device.'''
41 pass
42
43
44@registry.register('word_emb', 'glove')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected