class_docstr: A learnable scale parameter.
  
  This layer scales the input by a learnable factor. It multiplies a
  learnable scale parameter of shape (1,) with input of any shape.
  
  Args:
      scale (float): Initial value of scale factor. Default: 1.0
class_docstr_tok: ["A","learnable","scale","parameter",".","This","layer","scales","the","input","by","a","learnable","factor",".","It","multiplies","a","learnable","scale","parameter","of","shape","(","1",",",")","with","input","of","any","shape",".","Args",":","scale","(","float",")",":","Initial","value","of","scale","factor",".","Default",":","1.0"]
code: def __init__(self, scale=1.0):
      super(Scale, self).__init__()
      self.scale = nn.Parameter(torch.tensor(scale, dtype=torch.float))
  
imports: import torch
  import torch.nn
label_desc: Use image node_id 1 to create a new Scale object from inherited base classes: nn with example: obj = Scale(scale)