Skip to content

Commit 72d90d0

Browse files
ccrepyThe gemma Authors
authored andcommitted
Consolidate core API definitions into hd_api.py.
PiperOrigin-RevId: 952108946
1 parent 09e7b48 commit 72d90d0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

gemma/diffusion/hackable_diffusion_adapter/hd/hd_gemma_ar_state_handler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
Tokens = Int["*B L"]
3737
Conditioning = hd_typing.Conditioning
3838
DataArray = 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.

0 commit comments

Comments
 (0)