MCPcopy Create free account
hub / github.com/huggingface/diffusers / get_out_block

Function get_out_block

src/diffusers/models/unets/unet_1d_blocks.py:694–701  ·  view source on GitHub ↗
(
    *, out_block_type: str, num_groups_out: int, embed_dim: int, out_channels: int, act_fn: str, fc_dim: int
)

Source from the content-addressed store, hash-verified

692
693
694def get_out_block(
695 *, out_block_type: str, num_groups_out: int, embed_dim: int, out_channels: int, act_fn: str, fc_dim: int
696) -> OutBlockType | None:
697 if out_block_type == "OutConv1DBlock":
698 return OutConv1DBlock(num_groups_out, out_channels, embed_dim, act_fn)
699 elif out_block_type == "ValueFunction":
700 return OutValueFunctionBlock(fc_dim, embed_dim, act_fn)
701 return None

Callers 1

__init__Method · 0.85

Calls 2

OutConv1DBlockClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…