Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,508 for compute (0.17 sec)

  1. guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java

      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE})
      public void testCompute_absentToPresent() {
        assertEquals(
            "Map.compute(absent, functionReturningValue) should return value",
            v3(),
            getMap()
                .compute(
                    k3(),
                    (k, v) -> {
                      assertEquals(k3(), k);
                      assertNull(v);
                      return v3();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 6.8K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache_test.cc

      EXPECT_EQ(num_compute_calls, 5);
      cache2.LookupOrCompute("c", &value, compute_func, &status);
      TF_EXPECT_OK(status.status);
      EXPECT_EQ(value, 2);
      EXPECT_EQ(num_compute_calls, 5);
      cache2.LookupOrCompute("d", &value, compute_func, &status);
      TF_EXPECT_OK(status.status);
      EXPECT_EQ(value, 3);
      EXPECT_EQ(num_compute_calls, 5);
    
      // Re-read "a", ensure it is re-computed.
      cache2.LookupOrCompute("a", &value, compute_func, &status);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 09 19:31:22 GMT 2020
    - 7.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/math/Quantiles.java

     *
     * <h3>Examples</h3>
     *
     * <p>To compute the median:
     *
     * <pre>{@code
     * double myMedian = median().compute(myDataset);
     * }</pre>
     *
     * where {@link #median()} has been statically imported.
     *
     * <p>To compute the 99th percentile:
     *
     * <pre>{@code
     * double myPercentile99 = percentiles().index(99).compute(myDataset);
     * }</pre>
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 29.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/math/QuantilesTest.java

      }
    
      public void testScale_index_compute_doubleCollection() {
        assertThat(Quantiles.scale(10).index(1).compute(SIXTEEN_SQUARES_DOUBLES))
            .isWithin(ALLOWED_ERROR)
            .of(SIXTEEN_SQUARES_DECILE_1);
      }
    
      public void testScale_index_compute_longCollection() {
        assertThat(Quantiles.scale(10).index(1).compute(SIXTEEN_SQUARES_LONGS))
            .isWithin(ALLOWED_ERROR)
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/math/QuantilesTest.java

      }
    
      public void testScale_index_compute_doubleCollection() {
        assertThat(Quantiles.scale(10).index(1).compute(SIXTEEN_SQUARES_DOUBLES))
            .isWithin(ALLOWED_ERROR)
            .of(SIXTEEN_SQUARES_DECILE_1);
      }
    
      public void testScale_index_compute_longCollection() {
        assertThat(Quantiles.scale(10).index(1).compute(SIXTEEN_SQUARES_LONGS))
            .isWithin(ALLOWED_ERROR)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.7K bytes
    - Viewed (0)
  6. configure.py

        native_cuda_compute_capabilities = get_native_cuda_compute_capabilities(
            environ_cp)
        if not native_cuda_compute_capabilities:
          default_cuda_compute_capabilities = _DEFAULT_CUDA_COMPUTE_CAPABILITIES
        else:
          default_cuda_compute_capabilities = native_cuda_compute_capabilities
    
        ask_cuda_compute_capabilities = (
            'Please specify a list of comma-separated CUDA compute capabilities '
    Python
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (0)
  7. tests/test_modules_same_name_body/test_main.py

                        },
                        "summary": "Compute",
                        "operationId": "compute_a_compute_post",
                        "requestBody": {
                            "content": {
                                "application/json": {
                                    "schema": {
                                        "$ref": "#/components/schemas/Body_compute_a_compute_post"
                                    }
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  8. tests/test_modules_same_name_body/app/a.py

    from fastapi import APIRouter, Body
    
    router = APIRouter()
    
    
    @router.post("/compute")
    def compute(a: int = Body(), b: str = Body()):
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 160 bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/LocalCacheMapComputeTest.java

        // b/80241237
    
        Cache<String, String> c = CacheBuilder.newBuilder().maximumSize(1).build();
    
        assertThat(c.asMap().compute("hash-1", (k, v) -> "a")).isEqualTo("a");
        assertThat(c.asMap().compute("hash-1", (k, v) -> "b")).isEqualTo("b");
        assertThat(c.asMap().compute("hash-1", (k, v) -> "c")).isEqualTo("c");
        assertThat(c.size()).isEqualTo(1);
        assertThat(c.asMap().computeIfAbsent("hash-2", k -> "")).isEqualTo("");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.3K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/gradients/math_grad.cc

            "Expected numeric or variant tensor, got dtype ", dtype);
      }
      return tensorflow::ops::Conj(ctx, input, output, name);
    }
    
    class AddGradientFunction : public GradientFunction {
     public:
      Status Compute(AbstractContext* ctx,
                     absl::Span<AbstractTensorHandle* const> grad_outputs,
                     absl::Span<AbstractTensorHandle*> grad_inputs) override {
        // TODO(b/161805092): Support broadcasting.
    
    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)
Back to top