File tree Expand file tree Collapse file tree
gemma/diffusion/hackable_diffusion_adapter/hd Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636Tokens = Int ["*B L" ]
3737Conditioning = hd_typing .Conditioning
3838DataArray = hd_typing .DataArray
39- DiffusionStepTree = hd .sampling .DiffusionStepTree
39+ DiffusionStep = hd .sampling .DiffusionStep
4040
4141
4242################################################################################
@@ -50,7 +50,7 @@ class PropagateSelfConditioningFn(hd.sampling.UpdateConditioningFn):
5050 def __call__ (
5151 self ,
5252 conditioning : Conditioning ,
53- step_carry : DiffusionStepTree ,
53+ step_carry : DiffusionStep ,
5454 ) -> Conditioning :
5555 """Update conditioning based on the current diffusion step.
5656
@@ -275,7 +275,7 @@ def init_ar_state(
275275
276276 def update_ar_state (
277277 self ,
278- canvas_last_step : DiffusionStepTree ,
278+ canvas_last_step : DiffusionStep ,
279279 sampler_state : ar_diffusion_sampler .SamplerState ,
280280 ) -> ar_diffusion_sampler .SamplerState :
281281 """Post-processes a sampled canvas and updates the sampler state.
You can’t perform that action at this time.
0 commit comments