Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for Chandler (0.15 sec)

  1. tensorflow/c/eager/c_api_experimental_test.cc

        // Read the value of tensor handle `handle_1`.
        float value = 0.0f;
        TF_Tensor* t = TFE_TensorHandleResolve(handle_1, status);
        ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
        ASSERT_EQ(sizeof(float), TF_TensorByteSize(t));
        memcpy(&value, TF_TensorData(t), sizeof(float));
        TF_DeleteTensor(t);
        EXPECT_EQ(1.2f, value);
        TFE_DeleteTensorHandle(handle_1);
        TF_DeleteStatus(status);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  2. tensorflow/c/experimental/filesystem/modular_filesystem.cc

      // Step 1: Load plugin
      Env* env = Env::Default();
      void* dso_handle;
      TF_RETURN_IF_ERROR(env->LoadDynamicLibrary(dso_path.c_str(), &dso_handle));
    
      // Step 2: Load symbol for `TF_InitPlugin`
      void* dso_symbol;
      TF_RETURN_WITH_CONTEXT_IF_ERROR(
          env->GetSymbolFromLibrary(dso_handle, "TF_InitPlugin", &dso_symbol),
          "Failed to load TF_InitPlugin symbol for DSO: ", dso_path);
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 23.1K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_unified_experimental_test.cc

      float results[2];
      for (int idx = 0; idx < 2; ++idx) {
        TF_AbstractTensor* result = TF_OutputListGet(func_outputs, idx);
        TFE_TensorHandle* handle = TF_AbstractTensorGetEagerTensor(result, s);
        ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
        TF_Tensor* f_t = TFE_TensorHandleResolve(handle, s);
        ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
        results[idx] = *static_cast<float*>(TF_TensorData(f_t));
        TF_DeleteTensor(f_t);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 19 21:44:52 GMT 2023
    - 39.1K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_experimental.h

    // Create a packed TensorHandle with the given list of TensorHandles.
    // If `handles` are on the same device, assign the same device to the packed
    // handle; if `handles` are on different deivces, assign a CompositeDevice to
    // it.
    TF_CAPI_EXPORT extern TFE_TensorHandle* TFE_CreatePackedTensorHandle(
        TFE_Context* ctx, TFE_TensorHandle** handles, int* num_handles,
        TF_Status* status);
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 39.5K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api.h

    // "Context" under which operations/functions are executed. It encapsulates
    // things like the available devices, resource manager etc.
    // TFE_Context must outlive all tensor handles created using it. In other
    // words, TFE_DeleteContext() must be called after all tensor handles have
    // been deleted (with TFE_DeleteTensorHandle).
    //
    // TODO(ashankar): Merge with TF_Session?
    typedef struct TFE_Context TFE_Context;
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 21:07:00 GMT 2023
    - 22.8K bytes
    - Viewed (1)
  6. tensorflow/c/eager/custom_device_test.cc

      TFE_TensorHandle* var_handle = nullptr;
      int num_retvals = 1;
      executed = false;
      TFE_Execute(op.get(), &var_handle, &num_retvals, status.get());
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
      ASSERT_TRUE(executed);
      auto handle_cleaner = tensorflow::gtl::MakeCleanup(
          [var_handle]() { TFE_DeleteTensorHandle(var_handle); });
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 27 23:39:24 GMT 2020
    - 18.4K bytes
    - Viewed (0)
  7. tensorflow/c/eager/dlpack.cc

    };
    
    // 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 =
          tensorflow::TensorHandleFromInterface(tensorflow::unwrap(h));
      if (handle->Type() != TensorHandle::LOCAL) {
    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)
  8. tensorflow/c/eager/gradients.cc

    }
    
    TapeTensor::TapeTensor(AbstractTensorHandle* handle) : handle_(handle) {
      handle_->Ref();
    }
    TapeTensor::TapeTensor(const TapeTensor& other) {
      handle_ = other.handle_;
      handle_->Ref();
    }
    TapeTensor::~TapeTensor() { handle_->Unref(); }
    
    int64_t TapeTensor::GetID() const { return ToId(handle_); }
    
    tensorflow::DataType TapeTensor::GetDType() const {
      return handle_->DataType();
    }
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/grappler/grappler.cc

          creator, device_type, configs);
    }
    
    #undef CONFIG_TOGGLE
    
    absl::Status InitGraphPlugin(void* dso_handle) {
      tsl::Env* env = tsl::Env::Default();
    
      // Step 1: Load symbol for `TF_InitPlugin`
      void* dso_symbol;
      TF_RETURN_IF_ERROR(
          env->GetSymbolFromLibrary(dso_handle, "TF_InitGraph", &dso_symbol));
    
      // Step 2: Call `TF_InitPlugin`
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 15K bytes
    - Viewed (1)
  10. tensorflow/c/eager/c_api.cc

            ->DevicePointer();
      }
      // TODO(b/175427838): It would be nice to be able to use tensorflow::isa here.
      if (!tensorflow::TensorHandle::classof(unwrapped_handle)) {
        status->status = tensorflow::errors::InvalidArgument("Invalid handle");
        return nullptr;
      }
      tensorflow::TensorHandle* handle =
          tensorflow::TensorHandleFromInterface(unwrapped_handle);
    
    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)
Back to top