class_docstr: Assigns a scaling factor equal to 1 along dimension ``dim``, and therefore
  applies no scaling to the input data.
  
  Parameters
  ----------
  dim
      dimension along which to compute the scale
  keepdim
      controls whether to retain dimension ``dim`` (of length 1) in the
      scale tensor, or suppress it.
class_docstr_tok: ["Assigns","a","scaling","factor","equal","to","1","along","dimension","``","dim","``",",","and","therefore","applies","no","scaling","to","the","input","data",".","Parameters","--","--","--","--","--","dim","dimension","along","which","to","compute","the","scale","keepdim","controls","whether","to","retain","dimension","``","dim","``","(","of","length","1",")","in","the","scale","tensor",",","or","suppress","it","."]
code: def __init__(
      self,
      dim: int = -1,
      keepdim: bool = False,
  ) -> None:
      self.dim = dim
      self.keepdim = keepdim
  
file_path: gluonts/src/gluonts/torch/scaler.py
imports: from __future__ import annotations
  from typing import Optional
  import torch
  from gluonts.core.component import validated
label_desc: Use image node_id 1 to create a new NOPScaler object from inherited base classes: Scaler with example: obj = NOPScaler(dim, keepdim)