class_docstr: Add coords to a tensor.
  
  MIT License
  Copyright (c) 2018 Walsvid
  
  Link to the paper: https://arxiv.org/abs/1807.03247
  Link to the PyTorch implementation: https://github.com/walsvid/CoordConv
class_docstr_tok: ["Add","coords","to","a","tensor",".","MIT","License","Copyright","(","c",")","2018","Walsvid","Link","to","the","paper",":","https",":","\/\/arxiv.org\/abs\/1807.03247","Link","to","the","PyTorch","implementation",":","https",":","\/\/github.com\/walsvid\/CoordConv"]
code: def __init__(self, with_r: bool = False) -> None:
      super().__init__()
      self.with_r = with_r
  
imports: from __future__ import annotations
  import torch
  import torch.nn.functional
  import torchvision
  from einops import rearrange
  from sklearn.cluster import KMeans
  from torch import Tensor, nn
  from torch.fx.graph_module import GraphModule
  from torch.nn.common_types import _size_2_t
  from torch.utils.data import DataLoader
  from torchvision.models.feature_extraction import create_feature_extractor
  from tqdm import tqdm
  from anomalib.models.cfa.anomaly_map import AnomalyMapGenerator
  from anomalib.models.components import DynamicBufferModule
  from anomalib.models.components.feature_extractors import dryrun_find_featuremap_dims
label_desc: Use image node_id 1 to create a new AddCoords object from inherited base classes: nn with example: obj = AddCoords(with_r)