class_docstr: Straight through the gradient to the score, then the score = initial_score + sum(-lr * grad(weight) * weight).
class_docstr_tok: ["Straight","through","the","gradient","to","the","score",",","then","the","score","=","initial_score","+","sum","(","-lr","*","grad","(","weight",")","*","weight",")","."]
code: def forward(ctx, score, mask):
      return mask
  
imports: from typing import Any
  import torch
  from .target_space import PruningTargetSpace, QuantizationTargetSpace, TargetSpace, TargetType
label_desc: Use image node_id 1 for calling the _StraightThrough obj's underlying member method code with example usage: obj.forward(ctx, score, mask) and returns: mask