MCPcopy Create free account
hub / github.com/SooLab/CGFormer / dummy_inputs

Method dummy_inputs

bert/modeling_utils.py:285–291  ·  view source on GitHub ↗

Dummy inputs to do a forward pass in the network. Returns: torch.Tensor with dummy inputs

(self)

Source from the content-addressed store, hash-verified

283
284 @property
285 def dummy_inputs(self):
286 """ Dummy inputs to do a forward pass in the network.
287
288 Returns:
289 torch.Tensor with dummy inputs
290 """
291 return {"input_ids": torch.tensor(DUMMY_INPUTS)}
292
293 def __init__(self, config, *inputs, **kwargs):
294 super().__init__()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected