Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for 1E (0.01 sec)

  1. tensorflow/c/eager/gradient_checker.cc

      AbstractTensorHandle* f_outputs[1];
    
      // Numerical Grad Check
      for (int i = 0; i < num_elems; i++) {
        // Get relative epsilon value
        float epsilon = theta_data[i] == 0 ? 1e-4 : std::abs(theta_data[i] * 1e-4);
        AbstractTensorHandlePtr two_eps;
        {
          AbstractTensorHandle* two_eps_raw = nullptr;
          TF_RETURN_IF_ERROR(TestScalarTensorHandle<float, TF_FLOAT>(
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

        assertThat(converter.convert("-1")).isEqualTo((Double) (-1.0));
        assertThat(converter.convert("1e6")).isEqualTo((Double) 1e6);
        assertThat(converter.convert("1e-6")).isEqualTo((Double) 1e-6);
      }
    
      public void testStringConverter_convertError() {
        assertThrows(
            NumberFormatException.class, () -> Doubles.stringConverter().convert("notanumber"));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  3. internal/s3select/json/record.go

    	// Like fmt %g, but the exponent cutoffs are different
    	// and exponents themselves are not padded to two digits.
    	abs := math.Abs(f)
    	fmt := byte('f')
    	if abs != 0 {
    		if abs < 1e-6 || abs >= 1e21 {
    			fmt = 'e'
    		}
    	}
    	dst = strconv.AppendFloat(dst, f, fmt, -1, 64)
    	if fmt == 'e' {
    		// clean up e-09 to e-9
    		n := len(dst)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  4. tensorflow/c/eager/gradient_checker_test.cc

    void CompareNumericalAndManualGradients(
        Model model, AbstractContext* ctx,
        absl::Span<AbstractTensorHandle* const> inputs, int input_index,
        float* expected_grad, int num_grad, bool use_function,
        double abs_error = 1e-2) {
      absl::Status s;
      AbstractTensorHandlePtr numerical_grad;
      {
        AbstractTensorHandle* numerical_grad_raw;
        s = CalcNumericalGrad(ctx, model, inputs, input_index, use_function,
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

        assertThat(converter.convert("-1")).isEqualTo((Float) (-1.0f));
        assertThat(converter.convert("1e6")).isEqualTo((Float) 1e6f);
        assertThat(converter.convert("1e-6")).isEqualTo((Float) 1e-6f);
      }
    
      public void testStringConverter_convertError() {
        assertThrows(NumberFormatException.class, () -> Floats.stringConverter().convert("notanumber"));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/primitives/DoublesTest.java

        assertThat(converter.convert("-1")).isEqualTo((Double) (-1.0));
        assertThat(converter.convert("1e6")).isEqualTo((Double) 1e6);
        assertThat(converter.convert("1e-6")).isEqualTo((Double) 1e-6);
      }
    
      public void testStringConverter_convertError() {
        assertThrows(
            NumberFormatException.class, () -> Doubles.stringConverter().convert("notanumber"));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/FloatsTest.java

        assertThat(converter.convert("-1")).isEqualTo((Float) (-1.0f));
        assertThat(converter.convert("1e6")).isEqualTo((Float) 1e6f);
        assertThat(converter.convert("1e-6")).isEqualTo((Float) 1e-6f);
      }
    
      public void testStringConverter_convertError() {
        assertThrows(NumberFormatException.class, () -> Floats.stringConverter().convert("notanumber"));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

    import junit.framework.TestCase;
    import org.mockito.Mockito;
    
    /**
     * Tests for RateLimiter.
     *
     * @author Dimitris Andreou
     */
    public class RateLimiterTest extends TestCase {
      private static final double EPSILON = 1e-8;
    
      private final FakeStopwatch stopwatch = new FakeStopwatch();
    
      public void testSimple() {
        RateLimiter limiter = RateLimiter.create(5.0, stopwatch);
        limiter.acquire(); // R0.00, since it's the first request
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

    import junit.framework.TestCase;
    import org.mockito.Mockito;
    
    /**
     * Tests for RateLimiter.
     *
     * @author Dimitris Andreou
     */
    public class RateLimiterTest extends TestCase {
      private static final double EPSILON = 1e-8;
    
      private final FakeStopwatch stopwatch = new FakeStopwatch();
    
      public void testSimple() {
        RateLimiter limiter = RateLimiter.create(5.0, stopwatch);
        limiter.acquire(); // R0.00, since it's the first request
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/hash/BloomFilterTest.java

            bitArray.bitSize() > 0);
    
        // Ideally we would also test the bitSize() overflow of this BF, but it runs out of heap space
        // BloomFilter.create(Funnels.unencodedCharsFunnel(), 244412641, 1e-11);
      }
    
      /**
       * Asserts that {@link BloomFilter#approximateElementCount} is within 1 percent of the expected
       * value.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 21.2K bytes
    - Viewed (0)
Back to top