MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / get_out_block

Function get_out_block

diffusers/src/diffusers/models/unets/unet_1d_blocks.py:695–702  ·  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

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

Callers 1

__init__Method · 0.85

Calls 2

OutConv1DBlockClass · 0.85

Tested by

no test coverage detected