Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for create_device (0.13 sec)

  1. tensorflow/c/experimental/stream_executor/stream_executor.h

    //     params->platform->name = DEVICE_NAME;
    //     params->platform->type = DEVICE_TYPE;
    //     params->platform_fns->get_device_count = get_device_count;
    //     params->platform_fns->create_device = create_device;
    //     params->platform_fns->destroy_device = destroy_device;
    //     ...
    //   }
    
    #define SE_MAJOR 0
    #define SE_MINOR 0
    #define SE_PATCH 1
    
    #ifdef __cplusplus
    extern "C" {
    #endif
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 24 08:40:35 UTC 2022
    - 21.6K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/stream_executor/stream_executor_test.cc

        params->platform_fns->create_device = nullptr;
      };
    
      std::string device_type, platform_name;
      absl::Status status =
          InitStreamExecutorPlugin(plugin_init, &device_type, &platform_name);
      ASSERT_EQ(status.code(), tensorflow::error::FAILED_PRECONDITION);
      ASSERT_EQ(status.message(),
                "'create_device' field in SP_PlatformFns must be set.");
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 19:54:04 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/stream_executor/stream_executor_test_util.cc

      *platform = {SP_PLATFORM_STRUCT_SIZE};
      platform->name = kDeviceName;
      platform->type = kDeviceType;
      platform_fns->get_device_count = GetDeviceCount;
      platform_fns->create_device = CreateDevice;
      platform_fns->destroy_device = DestroyDevice;
      platform_fns->create_device_fns = CreateDeviceFns;
      platform_fns->destroy_device_fns = DestroyDeviceFns;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 21 20:09:00 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/stream_executor/stream_executor.cc

    absl::Status ValidateSPPlatformFns(const SP_PlatformFns& platform_fns) {
      TF_VALIDATE_STRUCT_SIZE(SP_PlatformFns, platform_fns,
                              SP_PLATFORM_FNS_STRUCT_SIZE);
      TF_VALIDATE_NOT_NULL(SP_PlatformFns, platform_fns, create_device);
      TF_VALIDATE_NOT_NULL(SP_PlatformFns, platform_fns, destroy_device);
      TF_VALIDATE_NOT_NULL(SP_PlatformFns, platform_fns, create_stream_executor);
      TF_VALIDATE_NOT_NULL(SP_PlatformFns, platform_fns, destroy_stream_executor);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 14 07:39:19 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/xla_cpu_device.cc

    namespace tensorflow {
    using tensorflow::IdentityShapeRepresentationFn;
    
    class XlaCpuDeviceFactory : public DeviceFactory {
     public:
      Status ListPhysicalDevices(std::vector<string>* devices) override;
      Status CreateDevices(const SessionOptions& options, const string& name_prefix,
                           std::vector<std::unique_ptr<Device>>* devices) override;
    };
    
    Status XlaCpuDeviceFactory::ListPhysicalDevices(std::vector<string>* devices) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/xla_gpu_device.cc

    #include "tensorflow/core/lib/core/status.h"
    
    namespace tensorflow {
    
    class XlaGpuDeviceFactory : public DeviceFactory {
     public:
      Status ListPhysicalDevices(std::vector<string>* devices) override;
      Status CreateDevices(const SessionOptions& options, const string& name_prefix,
                           std::vector<std::unique_ptr<Device>>* devices) override;
    };
    
    Status XlaGpuDeviceFactory::ListPhysicalDevices(std::vector<string>* devices) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/xla_tpu_device.cc

      if (!status.ok()) {
        done(status);
      }
    }
    
    class TpuNodeDeviceFactory : public DeviceFactory {
     public:
      Status ListPhysicalDevices(std::vector<string>* devices) override;
      Status CreateDevices(const SessionOptions& options, const string& name_prefix,
                           std::vector<std::unique_ptr<Device>>* devices) override;
    };
    
    Status TpuNodeDeviceFactory::ListPhysicalDevices(std::vector<string>* devices) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/device_context_test.cc

        auto device_factory = DeviceFactory::GetFactory(device_type);
        SessionOptions options;
        std::vector<std::unique_ptr<Device>> devices;
        Status s = device_factory->CreateDevices(
            options, "/job:worker/replica:0/task:0", &devices);
        device_ = std::move(devices[0]);
    
        tensorflow::AllocatorAttributes host_alloc_attr;
        host_alloc_attr.set_on_host(true);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/xla_host_send_recv_device_context_test.cc

      void SetDevice(const string& device_type) {
        auto device_factory = DeviceFactory::GetFactory(device_type);
        SessionOptions options;
        std::vector<std::unique_ptr<Device>> devices;
        Status s = device_factory->CreateDevices(
            options, "/job:worker/replica:0/task:0", &devices);
        device_ = std::move(devices[0]);
    
        AllocatorAttributes host_alloc_attr;
        host_alloc_attr.set_on_host(true);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/encapsulate_subgraphs_pass.cc

      if (!cpu_factory) {
        return errors::NotFound(
            "CPU Factory not registered. Can't run EncapsulateSubgraphsPass");
      }
      TF_RETURN_IF_ERROR(cpu_factory->CreateDevices(
          session_options, "/job:localhost/replica:0/task:0", &devices));
      if (devices.empty()) {
        return errors::NotFound(
            "Failed to create a CPU device for EncapsulateSubgraphsPass");
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 51K bytes
    - Viewed (0)
Back to top