Skip to content

concatenate the conditional and unconditional inputs to speed inference #4

Description

@jakob1519

hello,

I want to ask this code in diffuser.py
why it can speed inference?
could you explain it to me?

nn_inputs = [np.vstack([x_t, x_t]),
                     np.vstack([noise_in, noise_in]),
                     np.vstack([label, label_empty_ohe])]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions