(
*, out_block_type: str, num_groups_out: int, embed_dim: int, out_channels: int, act_fn: str, fc_dim: int
)
| 692 | |
| 693 | |
| 694 | def 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 |
no test coverage detected
searching dependent graphs…