Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for SafeDivHelper (0.35 sec)

  1. tensorflow/cc/gradients/math_grad.cc

      grad_outputs->push_back(Conj(scope, grad_inputs[0]));
      return scope.status();
    }
    REGISTER_GRADIENT_OP("Conj", ConjGrad);
    
    // Integer division x / y, assuming x and y >=0, but treats x/0 = x
    Output SafeDivHelper(const Scope& scope, const Output& x, const Output& y) {
      return Div(scope, x, Maximum(scope, y, Const(scope, 1)));
    }
    
    // SumGradHelper returns the gradient for the Sum operator, and is used
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 50.7K bytes
    - Viewed (0)
Back to top