Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BroadcastGradientArgs (0.17 sec)

  1. tensorflow/compiler/mlir/tfr/examples/mnist/ops_defs.py

      elif act == 'TANH':
        y = math_ops.conj(y)
        grad = gen_math_ops.tanh_grad(y, grad)
    
      broadcast_shape = tf.shape(y)
      input_value_shape = tf.shape(op.inputs[2])
      _, reduction_axes = tf.raw_ops.BroadcastGradientArgs(
          s0=broadcast_shape, s1=input_value_shape)
      updates_grad_reshaped = tf.reduce_sum(
          grad, axis=reduction_axes, keepdims=True)
      bias_grad = tf.reshape(updates_grad_reshaped, input_value_shape)
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 31 20:23:51 UTC 2023
    - 6.8K bytes
    - Viewed (0)
Back to top