| 193 | } |
| 194 | |
| 195 | core::TensorValue reshape_heads( |
| 196 | core::ModuleBuildContext & ctx, |
| 197 | const core::TensorValue & input, |
| 198 | int64_t heads, |
| 199 | int64_t dim) { |
| 200 | return core::reshape_tensor( |
| 201 | ctx, |
| 202 | ensure_contiguous(ctx, input), |
| 203 | core::TensorShape::from_dims({input.shape.dims[0], input.shape.dims[1], heads, dim})); |
| 204 | } |
| 205 | |
| 206 | core::TensorValue same_attention( |
| 207 | core::ModuleBuildContext & ctx, |
no test coverage detected