class_docstr: Abstract model class with some utilities function.
class_docstr_tok: ["Abstract","model","class","with","some","utilities","function","."]
code: def compile(
      self,
      *,
      fullgraph: bool = False,
      dynamic: bool = False,
      backend: str = "inductor",
      mode: Optional[str] = None,
      options: dict[Any, Any] = {},
      disable: bool = False,
  ) -> ModelBase[ModelConfig]:
      compiled = torch.compile(
          self,
          fullgraph=fullgraph,
          dynamic=dynamic,
          backend=backend,
          mode=mode,
          options=options,
          disable=disable,
      )
      compiled = cast(ModelBase[ModelConfig], compiled)
      return compiled
  
file_path: kornia/kornia/contrib/models/base.py
imports: from __future__ import annotations
  import os
  from abc import ABC, abstractmethod
  from typing import Any, Generic, Optional, TypeVar, cast
  import torch
  from kornia.core import Module
label_desc: Use image node_id 3 for calling the ModelBase obj's underlying member method code with example usage: obj.compile() and returns: compiled