Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for negPre (0.13 sec)

  1. tensorflow/c/experimental/gradients/math_grad.cc

         *    dA =  U
         *    dB = -U
         *
         */
    
        // Grad for A
        DCHECK(grad_outputs[0]);
        grad_inputs[0] = grad_outputs[0];
        grad_inputs[0]->Ref();
    
        // Grad for B
        // negate the upstream grad
        std::string name = "Neg_Sub_Grad_B";
        TF_RETURN_IF_ERROR(
            ops::Neg(ctx, grad_outputs[0], &grad_inputs[1], name.c_str()));
    
        return absl::OkStatus();
      }
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_function_test.cc

                 {{"scalar10_0:output:0", "scalar10"}}, {});
    }
    
    TEST_F(CApiFunctionTest, OneOp_OneInput_OneOutput) {
      /*
       *                   |
       *                   v
       *                 negate
       *                   |
       *                   v
       */
      // Define
      TF_Operation* feed = Placeholder(func_graph_, s_);
      TF_Operation* neg = Neg(feed, func_graph_, s_);
      Define(-1, {}, {feed}, {neg}, {});
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
Back to top