MCPcopy Create free account
hub / github.com/CompVis/zigma / to

Method to

utils/train_state_utils.py:61–64  ·  view source on GitHub ↗
(self, device)

Source from the content-addressed store, hash-verified

59 self.load(ckpt_path)
60
61 def to(self, device):
62 for key, val in self.__dict__.items():
63 if isinstance(val, nn.Module):
64 val.to(device)
65
66
67def cnt_params(model):

Callers 15

initialize_train_stateFunction · 0.95
out2imgFunction · 0.80
mainFunction · 0.80
get_data_generatorFunction · 0.80
get_real_img_generatorFunction · 0.80
get_cap_generatorFunction · 0.80
mainFunction · 0.80
get_cap_generatorFunction · 0.80
get_data_generatorFunction · 0.80
timestep_embeddingMethod · 0.80
forwardMethod · 0.80
forwardMethod · 0.80

Calls

no outgoing calls

Tested by 4

test_sd_1_5Function · 0.64
test_causal_conv1dFunction · 0.64
test_selective_scanFunction · 0.64