class_docstr: This class is a helper to perform full point cloud prediction by having votes interpolated using knn
class_docstr_tok: ["This","class","is","a","helper","to","perform","full","point","cloud","prediction","by","having","votes","interpolated","using","knn"]
code: def k(self, k):
      if isinstance(k, int):
          if k > 0:
              self._k = k
          else:
              raise Exception("k should be >= 1")
      else:
          raise Exception("k used for knn_interpolate should be an int")
  
file_path: torch-points3d/torch_points3d/metrics/segmentation_helpers.py
imports: import numpy
  import torch
  from torch_points3d.core.data_transform import SaveOriginalPosId
  from torch_geometric.nn.unpool import knn_interpolate
label_desc: Use image node_id 3 for calling the SegmentationVoter obj's underlying member method code with example usage: obj.k(k) without return types