class_docstr: Compute X * log(X), with special case 0 log(0) = 0.
class_docstr_tok: ["Compute","X","*","log","(","X",")",",","with","special","case","0","log","(","0",")","=","0","."]
code: def grad(self, inputs, grads):
      (x,) = inputs
      (gz,) = grads
      return [gz * (1 + ps.log(x))]
  
file_path: pytensor/pytensor/tensor/xlogx.py
imports: import numpy
  from pytensor import scalar
  from pytensor.tensor.elemwise import Elemwise
label_desc: Use image node_id 3 for calling the XlogX obj's underlying member method code with example usage: obj.grad(inputs, grads) and returns: list