Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for has_value (0.19 sec)

  1. 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) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Feb 09 07:47:20 GMT 2024
    - 25.4K bytes
    - Viewed (1)
  2. tensorflow/c/eager/dlpack.cc

      DLManagedTensor* dlmt = static_cast<DLManagedTensor*>(dlm);
      DLTensor* dl_tensor = &dlmt->dl_tensor;
      absl::optional<std::string> device_name =
          DeviceNameFromDlContext(dl_tensor->device, status);
      if (!device_name.has_value()) {
        status->status =
            tensorflow::errors::InvalidArgument("Unsupported Device Type");
        return nullptr;
      }
      TF_DataType dtype;
      Status s = TfDataTypeFormDlDataType(dl_tensor->dtype, &dtype);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 12.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/TreeBasedTable.java

                comparator);
    
        return new AbstractIterator<C>() {
          @CheckForNull C lastValue;
    
          @Override
          @CheckForNull
          protected C computeNext() {
            while (merged.hasNext()) {
              C next = merged.next();
              boolean duplicate = lastValue != null && comparator.compare(next, lastValue) == 0;
    
              // Keep looping till we find a non-duplicate value.
              if (!duplicate) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/FluentIterableTest.java

        assertThat(iterable.firstMatch(Predicates.equalTo("cool"))).hasValue("cool");
        assertThat(iterable.firstMatch(Predicates.equalTo("pants"))).hasValue("pants");
        assertThat(iterable.firstMatch(Predicates.alwaysFalse())).isAbsent();
        assertThat(iterable.firstMatch(Predicates.alwaysTrue())).hasValue("cool");
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 18:35:19 GMT 2024
    - 31.1K bytes
    - Viewed (0)
  5. 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() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  6. android/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() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessMultipartRequestHandler.java

            String value = null;
            boolean haveValue = false;
            if (encoding != null) {
                try {
                    value = item.getString(encoding);
                    haveValue = true;
                } catch (final Exception e) {}
            }
            if (!haveValue) {
                try {
                    value = item.getString("ISO-8859-1");
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/MoreCollectorsTest.java

        assertThat(Stream.empty().collect(MoreCollectors.toOptional())).isEmpty();
      }
    
      public void testToOptionalSingleton() {
        assertThat(Stream.of(1).collect(MoreCollectors.toOptional())).hasValue(1);
      }
    
      public void testToOptionalNull() {
        Stream<@Nullable Object> stream = Stream.of((Object) null);
        try {
          stream.collect(MoreCollectors.toOptional());
          fail("Expected NullPointerException");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  9. tensorflow/c/c_api.cc

          tensorflow::EvaluateConstantTensorRunner{
              graph->graph.op_registry(),
              graph->graph.versions().producer(),
          });
      if (!status_or.ok() || !status_or->has_value()) {
        *result = nullptr;
        status->status = std::move(status_or).status();
        return false;
      }
      *result = TF_TensorFromTensor(**status_or, &status->status);
      return status->status.ok();
    }
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

            // nothing to do, we must have been cancelled, don't bother inspecting the future.
            return;
          }
          Object valueToSet = getFutureValue(future);
          if (ATOMIC_HELPER.casValue(owner, this, valueToSet)) {
            complete(
                owner,
                /*
                 * Interruption doesn't propagate through a SetFuture chain (see getFutureValue), so
                 * don't invoke interruptTask.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
Back to top