MCPcopy Create free account
hub / github.com/EryiXie/PlaneRecNet / gradinator

Method gradinator

train.py:179–181  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

177 def prepare_data(self, datum, devices:list=None, allocation:list=None):
178
179 def gradinator(x):
180 x.requires_grad = False
181 return x
182 if devices is None:
183 devices = ['cuda:0']
184 if allocation is None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected