Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 207 for cc_status (0.14 sec)

  1. tensorflow/c/eager/c_api_cluster_test.cc

          tensorflow::strings::StrCat("localhost:", port);
    }
    
    void CheckTFE_TensorHandleHasFloats(TFE_TensorHandle* handle,
                                        const std::vector<float>& expected_values) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      TF_Tensor* t = TFE_TensorHandleResolve(handle, status.get());
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 14 10:03:59 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  2. tensorflow/c/eager/dlpack.cc

      DLManagedTensor tensor;
    
      explicit TfDlManagedTensorCtx(const TensorReference& ref) : reference(ref) {}
    };
    
    // Gets tensor from eager tensor handle.
    const Tensor* GetTensorFromHandle(TFE_TensorHandle* h, TF_Status* status) {
      if (h == nullptr) {
        status->status = tensorflow::errors::InvalidArgument("Invalid handle");
        return nullptr;
      }
      tensorflow::TensorHandle* handle =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_experimental_reader_test.cc

      IncrementCounter1(counter, label_name);
    
      int64_t actual = TFE_MonitoringReadCounter1(reader, label_name);
    
      CHECK_EQ(actual, 1);
    }
    
    TFE_MonitoringCounter0* CreateCounter0(const char* counter_name) {
      TF_Status* status = TF_NewStatus();
      auto* counter =
          TFE_MonitoringNewCounter0(counter_name, status, "description");
      TF_DeleteStatus(status);
      return counter;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 20 03:14:47 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  4. tensorflow/c/kernels/summary_op.cc

    #include <sstream>
    #include <string>
    
    #include "unsupported/Eigen/CXX11/Tensor"  // from @eigen_archive
    #include "tensorflow/c/kernels.h"
    #include "tensorflow/c/kernels/tensor_shape_utils.h"
    #include "tensorflow/c/tf_status.h"
    #include "tensorflow/c/tf_tensor.h"
    #include "tensorflow/core/framework/registration/registration.h"
    #include "tensorflow/core/framework/summary.pb.h"
    #include "tensorflow/core/framework/types.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  5. tensorflow/c/c_api_test.cc

    // Returns the GPU device name if there is one (with arbitrary tie breaking if
    // there are more than one), or "" otherwise.
    string GPUDeviceName(TF_Session* session) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      TF_Status* s = status.get();
      std::unique_ptr<TF_DeviceList, decltype(&TF_DeleteDeviceList)> list(
          TF_SessionListDevices(session, s), TF_DeleteDeviceList);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/saved_model/internal/saved_model_api_test.cc

    #include "tensorflow/c/experimental/saved_model/public/tensor_spec.h"
    #include "tensorflow/c/tf_datatype.h"
    #include "tensorflow/c/tf_shape.h"
    #include "tensorflow/c/tf_status.h"
    #include "tensorflow/c/tf_tensor.h"
    #include "tensorflow/core/lib/io/path.h"
    #include "tensorflow/core/platform/status.h"
    #include "tensorflow/core/platform/stringpiece.h"
    #include "tensorflow/core/platform/test.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 08:08:45 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  7. tensorflow/c/kernels/bitcast_op.cc

      TF_DataType output_data_type;
      size_t in_size;
      size_t out_size;
    } BitcastOp;
    
    static void* BitcastOp_Create(TF_OpKernelConstruction* ctx) {
      auto* kernel = new BitcastOp;
    
      TF_Status* s = TF_NewStatus();
      TF_OpKernelConstruction_GetAttrType(ctx, "T", &kernel->input_data_type, s);
    
      if (TF_GetCode(s) == TF_OK) {
        TF_OpKernelConstruction_GetAttrType(ctx, "type", &kernel->output_data_type,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 31 03:28:11 UTC 2021
    - 5.9K bytes
    - Viewed (0)
  8. tensorflow/c/eager/parallel_device/parallel_device_lib_test.cc

    namespace tensorflow {
    namespace parallel_device {
    
    using ::testing::ElementsAre;
    using ::testing::HasSubstr;
    
    TEST(PARALLEL_DEVICE_LIB, TestOpWithError) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      std::unique_ptr<TFE_ContextOptions, decltype(&TFE_DeleteContextOptions)> opts(
          TFE_NewContextOptions(), TFE_DeleteContextOptions);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 08 23:47:35 UTC 2021
    - 15.3K bytes
    - Viewed (0)
  9. tensorflow/c/eager/custom_device_test.cc

    #include "tensorflow/c/eager/c_api_test_util.h"
    #include "tensorflow/c/eager/custom_device_testutil.h"
    #include "tensorflow/c/tf_status.h"
    #include "tensorflow/core/lib/gtl/cleanup.h"
    #include "tensorflow/core/platform/test.h"
    
    TEST(CUSTOM_DEVICE, RegisterSimpleDevice) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      TFE_ContextOptions* opts = TFE_NewContextOptions();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 27 23:39:24 UTC 2020
    - 18.4K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.h

                      TF_Status* status) ABSL_LOCKS_EXCLUDED(mu_);
    
      /// Trim the block cache to make room for another entry.
      void Trim() ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_);
    
      /// Update the LRU iterator for the block at `key`.
      void UpdateLRU(const Key& key, const std::shared_ptr<Block>& block,
                     TF_Status* status) ABSL_LOCKS_EXCLUDED(mu_);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 31 04:46:34 UTC 2020
    - 10.6K bytes
    - Viewed (0)
Back to top