Pattern ConvertPrimsConvertElementType {
  let root = op<torch.prims.convert_element_type>(input: Value, dtype: Value) -> (resType: Type);
  replace root with op<mfuse.cast>(convertValue(input)) -> (convertType(resType));
}

Pattern ConvertPrimsNumToTensorScalar {
  let root = op<torch.prim.NumToTensor.Scalar>(input: Value) -> (resType: Type);
  replace root with op<mfuse.num_to_tensor>(convertValue(input)) -> (convertType(resType));
}