MCPcopy
hub / github.com/PaddlePaddle/ERNIE / train

Method train

data_processor/utils/processor_base.py:51–58  ·  view source on GitHub ↗

train mode

(self)

Source from the content-addressed store, hash-verified

49 return self
50
51 def train(self):
52 """
53 train mode
54 """
55 for i in self.get_processors():
56 i.train()
57 self.is_training = True
58 return self
59
60 def pretrain(self):
61 """

Callers

nothing calls this directly

Calls 1

get_processorsMethod · 0.95

Tested by

no test coverage detected