Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 41 for Value (0.32 sec)

  1. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem_static.cc

    #include "tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.h"
    #include "tensorflow/core/platform/status.h"
    
    namespace tensorflow {
    
    // Register the POSIX filesystems statically.
    // Return value will be unused
    bool StaticallyRegisterLocalFilesystems() {
      TF_FilesystemPluginInfo info;
      TF_InitPlugin(&info);
      Status status = filesystem_registration::RegisterFilesystemPluginImpl(&info);
      if (!status.ok()) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Mar 24 20:08:23 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  2. tensorflow/c/eager/dlpack.cc

      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. tensorflow/c/experimental/grappler/grappler.cc

    #define VALIDATE_STRUCT_SIZE(STRUCT_NAME, STRUCT_OBJ, SIZE_VALUE_NAME) \
      do {                                                                 \
        if (STRUCT_OBJ.struct_size == 0) {                                 \
          return absl::Status(absl::StatusCode::kFailedPrecondition,       \
                              "struct_size field in " #STRUCT_NAME         \
                              " must be set to " #SIZE_VALUE_NAME ".");    \
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 15K bytes
    - Viewed (1)
  4. tensorflow/c/eager/parallel_device/parallel_device_test.cc

      // Create a tensor on the first parallel device
      TensorHandlePtr value_one(FloatTensorHandle(1., status.get()));
      TensorHandlePtr value_two(FloatTensorHandle(2., status.get()));
      ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
      std::array<TFE_TensorHandle*, 2> components{value_one.get(), value_two.get()};
      TensorHandlePtr first_combined_value = CreatePerDeviceValues(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 29.3K bytes
    - Viewed (1)
  5. tensorflow/c/eager/parallel_device/parallel_device_testlib.cc

      {
        TensorHandlePtr value_one(FloatTensorHandle(3., status.get()));
        TensorHandlePtr value_two(FloatTensorHandle(-2., status.get()));
        std::array<TFE_TensorHandle*, 2> components{value_one.get(),
                                                    value_two.get()};
        TensorHandlePtr combined_value =
            CreatePerDeviceValues(context, components, device_name, status.get());
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Jun 15 15:44:44 GMT 2021
    - 12.5K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/next_pluggable_device/c_api.cc

                                        TF_Status* status) {
      status->status = value.status();
      if (!value.ok()) {
        return nullptr;
      }
      // Caller is responsible to call `TF_DeleteBuffer` to release the buffer.
      TF_Buffer* result = TF_NewBuffer();
      const std::string& value_str = *value;
      void* data = malloc(value_str.length());
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Tue Jan 09 00:52:04 GMT 2024
    - 13.9K bytes
    - Viewed (1)
  7. tensorflow/c/eager/c_api_distributed_test.cc

          "      attr {"
          "        key: 'dtype'"
          "        value {"
          "          type: DT_FLOAT"
          "        }"
          "      }"
          "    }"
          "    node_def {"
          "      name: 'add1'"
          "      op: 'Add'"
          "      input: 'read0:value:0'"
          "      input: 'read1:value:0'"
          "      attr {"
          "        key: 'T'"
          "        value {"
          "          type: DT_FLOAT"
          "        }"
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  8. tensorflow/c/c_api_function.cc

        status->status = fdef_or.status();
        return;
      }
    
      (*(fdef_or.value()->mutable_attr()))[string(attr_name)] = attr_value;
    
      status->status = absl::OkStatus();
    }
    
    void TF_FunctionGetAttrValueProto(TF_Function* func, const char* attr_name,
                                      TF_Buffer* output_attr_value,
                                      TF_Status* status) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  9. tensorflow/c/eager/parallel_device/parallel_device.cc

      if (TF_GetCode(status) != TF_OK) return;
      if (!maybe_typed_outputs.has_value()) {
        TF_SetStatus(status, TF_INTERNAL, "OK status but no value was returned.");
        return;
      }
    
      std::vector<MaybeParallelTensorOwned> typed_outputs(
          std::move(maybe_typed_outputs.value()));
    
      if (typed_outputs.size() > *num_outputs) {
        TF_SetStatus(status, TF_INTERNAL,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 29 22:05:31 GMT 2023
    - 18.3K bytes
    - Viewed (0)
  10. 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)
Back to top