Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for hasValue (0.1 sec)

  1. guava-tests/test/com/google/common/net/MediaTypeTest.java

        assertThat(MediaType.parse("text/plain; charset =utf-8").charset()).hasValue(UTF_8);
        assertThat(MediaType.parse("text/plain; charset= utf-8").charset()).hasValue(UTF_8);
        assertThat(MediaType.parse("text/plain; charset = utf-8").charset()).hasValue(UTF_8);
        assertThat(MediaType.parse("text/plain;charset =utf-8").charset()).hasValue(UTF_8);
      }
    
      public void testGetCharset() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

        assertThat(iterable.firstMatch(equalTo("cool"))).hasValue("cool");
        assertThat(iterable.firstMatch(equalTo("pants"))).hasValue("pants");
        assertThat(iterable.firstMatch(Predicates.alwaysFalse())).isAbsent();
        assertThat(iterable.firstMatch(Predicates.alwaysTrue())).hasValue("cool");
      }
    
      private static final class IntegerValueOfFunction implements Function<String, Integer> {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/IterablesTest.java

      }
    
      public void testTryFind() {
        Iterable<String> list = newArrayList("cool", "pants");
        assertThat(tryFind(list, equalTo("cool"))).hasValue("cool");
        assertThat(tryFind(list, equalTo("pants"))).hasValue("pants");
        assertThat(tryFind(list, Predicates.alwaysTrue())).hasValue("cool");
        assertThat(tryFind(list, Predicates.alwaysFalse())).isAbsent();
        assertCanIterateAgain(list);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:12:33 UTC 2024
    - 45K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/IteratorsTest.java

        Iterator<String> iterator = list.iterator();
        assertThat(tryFind(iterator, equalTo("cool"))).hasValue("cool");
      }
    
      public void testTryFind_lastElement() {
        Iterable<String> list = Lists.newArrayList("cool", "pants");
        Iterator<String> iterator = list.iterator();
        assertThat(tryFind(iterator, equalTo("pants"))).hasValue("pants");
      }
    
      public void testTryFind_alwaysTrue() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        Iterator<String> iterator = list.iterator();
        assertThat(tryFind(iterator, equalTo("cool"))).hasValue("cool");
      }
    
      public void testTryFind_lastElement() {
        Iterable<String> list = Lists.newArrayList("cool", "pants");
        Iterator<String> iterator = list.iterator();
        assertThat(tryFind(iterator, equalTo("pants"))).hasValue("pants");
      }
    
      public void testTryFind_alwaysTrue() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  6. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

      if (TF_GetCode(status) != TF_OK) return;
    
      // unwrap op_ and set step_id only if valid step id value was set.
      // Currently only required for non-TFRT use cases, e.g., EagerOp.
      if (step_id_.has_value()) {
        tensorflow::unwrap(op_.get())->SetStepId(step_id_.value());
      }
    
      TFE_Execute(op_.get(), unwrapped_results.data(), &real_num_outputs, status);
      if (TF_GetCode(status) != TF_OK) {
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Oct 21 04:14:14 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  7. tensorflow/c/eager/parallel_device/parallel_device.cc

          maybe_parallel_results(
              parallel_device.Execute(context, parallel_inputs, operation_name,
                                      attributes, expected_max_outputs, status));
      if (!maybe_parallel_results.has_value()) return result;
      std::vector<std::unique_ptr<ParallelTensor>> parallel_results(
          std::move(maybe_parallel_results.value()));
      std::vector<MaybeParallelTensorOwned> result_content;
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Oct 21 04:14:14 UTC 2024
    - 18.3K bytes
    - Viewed (0)
Back to top