class_docstr: Module that calculates Harris corners.
  
  .. image:: _static/img/harris_response.png
  
  See :func:`~kornia.feature.harris_response` for details.
code: def __init__(
      self, k: Union[float, Tensor], grads_mode: str = "sobel"
  ) -> None:
      super().__init__()
      if isinstance(k, float):
          self.register_buffer("k", tensor(k))
      else:
          self.register_buffer("k", k)
      self.grads_mode: str = grads_mode
  
imports: from typing import Optional, Union
  import torch
  from kornia.core import Module, Tensor, tensor
  from kornia.core.check import KORNIA_CHECK_SHAPE
  from kornia.filters import gaussian_blur2d, spatial_gradient
label_desc: Use image node_id 1 to create a new CornerHarris object from inherited base classes: Module with example: obj = CornerHarris(k, grads_mode)