Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for hasValue (0.1 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) {
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Oct 21 04:14:14 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  2. 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)
  3. 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;
      absl::Status s = TfDataTypeFormDlDataType(dl_tensor->dtype, &dtype);
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  4. 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();
    }
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 102.3K bytes
    - Viewed (0)
Back to top