Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 127 for Negate (0.11 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();
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 28 13:53:47 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  2. src/crypto/ed25519/ed25519.go

    	}
    
    	S, err := edwards25519.NewScalar().SetCanonicalBytes(sig[32:])
    	if err != nil {
    		return false
    	}
    
    	// [S]B = R + [k]A --> [k](-A) + [S]B = R
    	minusA := (&edwards25519.Point{}).Negate(A)
    	R := (&edwards25519.Point{}).VarTimeDoubleScalarBaseMult(k, minusA, S)
    
    	return bytes.Equal(sig[:32], R.Bytes())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-with-tf2xla-hlo-importer.mlir

        func.return %0 : tensor<2x!tf_type.variant>
      }
    
      // CHECK-LABEL: multiple_dialect_ops
      func.func @multiple_dialect_ops(%arg0: tensor<2xf32>) -> tensor<2xf32> {
        // CHECK: mhlo.negate
        %0 = "mhlo.negate"(%arg0) : (tensor<2xf32>) -> tensor<2xf32>
        // CHECK: mhlo.atan2
        %1 = "tf.Atan2"(%arg0, %0) : (tensor<2xf32>, tensor<2xf32>) -> tensor<2xf32>
    
        func.return %1 : tensor<2xf32>
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 38.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/math/DoubleMath.java

        }
        int exponent = getExponent(x);
        long significand = getSignificand(x);
        BigInteger result = BigInteger.valueOf(significand).shiftLeft(exponent - SIGNIFICAND_BITS);
        return (x < 0) ? result.negate() : result;
      }
    
      /**
       * Returns {@code true} if {@code x} is exactly equal to {@code 2^k} for some finite integer
       * {@code k}.
       */
      @GwtIncompatible // com.google.common.math.DoubleUtils
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/math/DoubleMath.java

        }
        int exponent = getExponent(x);
        long significand = getSignificand(x);
        BigInteger result = BigInteger.valueOf(significand).shiftLeft(exponent - SIGNIFICAND_BITS);
        return (x < 0) ? result.negate() : result;
      }
    
      /**
       * Returns {@code true} if {@code x} is exactly equal to {@code 2^k} for some finite integer
       * {@code k}.
       */
      @GwtIncompatible // com.google.common.math.DoubleUtils
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/math/BigIntegerMathTest.java

            .test();
      }
    
      @J2ktIncompatible
      @GwtIncompatible
      public void testRoundToDouble_negativeWayTooBig() {
        BigInteger bi = BigInteger.ONE.shiftLeft(2 * Double.MAX_EXPONENT).negate();
        new RoundToDoubleTester(bi)
            .setExpectation(-Double.MAX_VALUE, DOWN, CEILING, HALF_EVEN, HALF_UP, HALF_DOWN)
            .setExpectation(Double.NEGATIVE_INFINITY, UP, FLOOR)
            .roundUnnecessaryShouldThrow()
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 17:58:33 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  7. src/time/zoneinfo.go

    	}
    	if !ok {
    		return "", 0, 0, 0, false, false
    	}
    
    	// The numbers in the tzset string are added to local time to get UTC,
    	// but our offsets are added to UTC to get local time,
    	// so we negate the number we see here.
    	stdOffset = -stdOffset
    
    	if len(s) == 0 || s[0] == ',' {
    		// No daylight savings time.
    		return stdName, stdOffset, lastTxSec, omega, false, true
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:30 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/RISCV64.rules

    (BNEZ (SEQZ x) yes no) => (BEQZ x yes no)
    (BNEZ (SNEZ x) yes no) => (BNEZ x yes no)
    
    // Remove redundant NEG from BEQZ/BNEZ.
    (BEQZ (NEG x) yes no) => (BEQZ x yes no)
    (BNEZ (NEG x) yes no) => (BNEZ x yes no)
    
    // Negate comparison with FNES/FNED.
    (BEQZ (FNES <t> x y) yes no) => (BNEZ (FEQS <t> x y) yes no)
    (BNEZ (FNES <t> x y) yes no) => (BEQZ (FEQS <t> x y) yes no)
    (BEQZ (FNED <t> x y) yes no) => (BNEZ (FEQD <t> x y) yes no)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  9. src/crypto/internal/nistec/p256_asm_arm64.s

    	MOVD	$1, t0
    	CMP	$0, t2
    	CSEL	EQ, ZR, t0, t2
    	CMP	$0, hlp1
    	CSEL	EQ, ZR, t0, hlp1
    
    	MOVD	p256const0<>(SB), const0
    	MOVD	p256const1<>(SB), const1
    	EOR	t2<<1, hlp1
    
    	// Negate y2in based on sign
    	LDP	2*16(b_ptr), (y0, y1)
    	LDP	3*16(b_ptr), (y2, y3)
    	MOVD	$-1, acc0
    
    	SUBS	y0, acc0, acc0
    	SBCS	y1, const0, acc1
    	SBCS	y2, ZR, acc2
    	SBCS	y3, const1, acc3
    	SBC	$0, ZR, t0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  10. src/crypto/internal/nistec/p256_asm_amd64.s

    	MOVOU (16*0)(CX), X0
    	MOVOU (16*1)(CX), X1
    
    	MOVOU X0, x2in(16*0)
    	MOVOU X1, x2in(16*1)
    	// Store pointer to result
    	MOVQ mul0, rptr
    	MOVL t1, sel_save
    	MOVL t2, zero_save
    	// Negate y2in based on sign
    	MOVQ (16*2 + 8*0)(CX), acc4
    	MOVQ (16*2 + 8*1)(CX), acc5
    	MOVQ (16*2 + 8*2)(CX), acc6
    	MOVQ (16*2 + 8*3)(CX), acc7
    	MOVQ $-1, acc0
    	MOVQ p256const0<>(SB), acc1
    	MOVQ $0, acc2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 39.8K bytes
    - Viewed (0)
Back to top