MCPcopy Create free account
hub / github.com/LeonardoBerti00/DeepMarket / sample

Method sample

models/diffusers/gaussian_diffusion.py:84–88  ·  view source on GitHub ↗
(self, x_0, real_cond_orders, real_cond_lob, weights)

Source from the content-addressed store, hash-verified

82
83
84 def sample(self, x_0, real_cond_orders, real_cond_lob, weights):
85 if self.sampling_type == "DDIM":
86 return self.ddim_sample(x_0, real_cond_orders, real_cond_lob)
87 elif self.sampling_type == "DDPM":
88 return self.ddpm_sample(x_0, real_cond_orders, real_cond_lob, weights)
89
90
91 def ddim_sample(self, x_0, cond_orders, cond_lob):

Callers 1

ddpm_single_stepMethod · 0.45

Calls 2

ddim_sampleMethod · 0.95
ddpm_sampleMethod · 0.95

Tested by

no test coverage detected