   }
 
   // MARK: - Private functions to run model
-  /// Preprocesses given rectangle image to be `Data` of disired size by croping and resizing it.
+  /// Preprocesses given rectangle image to be `Data` of desired size by cropping and resizing it.
   ///
   /// - Parameters:
   ///   - of: Input image to crop and resize.

  /// Postprocesses output `Tensor`s to `Result` with size of view to render the result.
  ///
  /// - Parameters:
  ///   - to: Size of view to be displaied.
  /// - Returns: Postprocessed `Result`. `nil` if it can not be processed.
  private func postprocess(to viewSize: CGSize) -> Result? {
    // MARK: Formats output tensors

    let inferenceStartTime: Date
    let postprocessingStartTime: Date

    // Processing times in milliseconds.
    let preprocessingTime: TimeInterval
    let inferenceTime: TimeInterval
    let postprocessingTime: TimeInterval
