use crate::{ops::numeric::empty_device_dtype, tensor::CubeTensor};
use burn_backend::{DType, TensorMetadata, calculate_matmul_output};
pub fn init_matmul_output(lhs: &CubeTensor, rhs: &CubeTensor, dtype: DType) -> CubeTensor {
empty_device_dtype(
lhs.client.clone(),
lhs.device.clone(),
calculate_matmul_output(&lhs.shape(), &rhs.shape()).unwrap(),
dtype,
)
}