| 854 | |
| 855 | auto cond = engine::core::wrap_tensor( |
| 856 | cond_, |
| 857 | engine::core::TensorShape::from_dims( |
| 858 | {2, root_config.feat_dim, root_config.patch_size}), |
| 859 | GGML_TYPE_F32); |
| 860 | cond = engine::modules::TransposeModule({{0, 2, 1, 3}, 3}).build(ctx, cond); |
| 861 | cond = engine::modules::LinearModule( |
| 862 | binding::linear_config(root_config.feat_dim, config.hidden_dim, |
| 863 | true)) |
| 864 | .build(ctx, cond, weights.cond_proj); |
| 865 | |
| 866 | auto time = engine::core::wrap_tensor( |
| 867 | time_embedding_, |
| 868 | engine::core::TensorShape::from_dims({2, config.hidden_dim}), |
| 869 | GGML_TYPE_F32); |
| 870 | time = |
| 871 | engine::modules::LinearModule( |
| 872 | binding::linear_config(config.hidden_dim, config.hidden_dim, true)) |
| 873 | .build(ctx, time, weights.time_mlp_1); |
| 874 | time = engine::modules::SiluModule{}.build(ctx, time); |
| 875 | time = |