Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 43 for value (0.19 sec)

  1. 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)
  2. 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)
  3. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util_test.cc

    #include "xla/pjrt/pjrt_c_api_client.h"
    #include "xla/pjrt/tfrt_cpu_pjrt_client.h"
    #include "xla/shape.h"
    #include "xla/shape_util.h"
    #include "tensorflow/core/framework/types.h"
    #include "tensorflow/core/tfrt/common/async_value_tensor.h"
    #include "tensorflow/core/tfrt/common/pjrt_util.h"
    #include "tsl/lib/core/status_test_util.h"
    #include "tsl/platform/casts.h"
    #include "tsl/platform/status_matchers.h"
    #include "tsl/protobuf/error_codes.pb.h"
    
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Mon Oct 30 19:20:20 GMT 2023
    - 7.2K bytes
    - Viewed (0)
  4. tensorflow/c/eager/gradient_checker.cc

      vector<float> thetaMinus_data(num_elems);
      AbstractTensorHandle* f_outputs[1];
    
      // Numerical Grad Check
      for (int i = 0; i < num_elems; i++) {
        // Get relative epsilon value
        float epsilon = theta_data[i] == 0 ? 1e-4 : std::abs(theta_data[i] * 1e-4);
        AbstractTensorHandlePtr two_eps;
        {
          AbstractTensorHandle* two_eps_raw = nullptr;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc

        ParseGCSPath(test_dir, true, &bucket, &object, status);
        if (TF_GetCode(status) != TF_OK) {
          TF_DeleteStatus(status);
          return "";
        }
        TF_DeleteStatus(status);
    
        // We add a random value into `test_dir` to ensures that two consecutive
        // runs are unlikely to clash.
        std::random_device rd;
        std::mt19937 gen(rd());
        std::uniform_int_distribution<> distribution;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 12:04:23 GMT 2020
    - 24.9K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api.cc

                                const float* values, int num_values) {
      auto s =
          tensorflow::unwrap(op)->SetAttrFloatList(attr_name, values, num_values);
      if (!s.ok()) {
        LOG(WARNING) << "Unable to set attribute: " << attr_name;
      }
    }
    
    void TFE_OpSetAttrIntList(TFE_Op* op, const char* attr_name,
                              const int64_t* values, int num_values) {
      auto s =
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
  7. tensorflow/c/eager/c_api_experimental.cc

      } else {
        // Block until the key-value is set or the worker shuts down.
        timeout = absl::InfiniteDuration();
      }
      auto status_or_value = coord_agent->GetKeyValue(key, timeout);
      status->status = status_or_value.status();
      if (!status_or_value.ok()) return;
    
      const std::string& value_string = status_or_value.value();
      void* data = tensorflow::port::Malloc(value_string.length());
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 11 23:52:39 GMT 2024
    - 35.9K bytes
    - Viewed (3)
  8. tensorflow/c/eager/c_api_test_util.cc

      memcpy(TF_TensorData(t.get()), &value, TF_TensorByteSize(t.get()));
    
      std::unique_ptr<TFE_TensorHandle, decltype(&TFE_DeleteTensorHandle)>
          value_handle(TFE_NewTensorHandle(t.get(), status),
                       TFE_DeleteTensorHandle);
      if (TF_GetCode(status) != TF_OK) return nullptr;
    
      TFE_OpAddInput(op, value_handle.get(), status);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 23.5K bytes
    - Viewed (2)
  9. tensorflow/c/eager/c_api_unified_experimental_graph.cc

                             int num_values) override {
        op_->node_builder.Attr(attr_name,
                               ArraySlice<const DataType>(values, num_values));
        return absl::OkStatus();
      }
      Status SetAttrBoolList(const char* attr_name, const unsigned char* values,
                             int num_values) override {
        std::unique_ptr<bool[]> b(new bool[num_values]);
        for (int i = 0; i < num_values; ++i) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 15.4K bytes
    - Viewed (1)
  10. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

      const char* block_size_env = std::getenv(kBlockSize);
      if (block_size_env && absl::SimpleAtoi(block_size_env, &value)) {
        block_size = value * 1024 * 1024;
      }
      const char* max_bytes_env = std::getenv(kMaxCacheSize);
      if (max_bytes_env && absl::SimpleAtoi(max_bytes_env, &value)) {
        max_bytes = static_cast<size_t>(value * 1024 * 1024);
      }
      const char* max_staleness_env = std::getenv(kMaxStaleness);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 23 06:55:53 GMT 2023
    - 46.9K bytes
    - Viewed (0)
Back to top