Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for device_num (0.36 sec)

  1. tensorflow/compiler/jit/get_compiler_ir.cc

      NameAttrList function;
      function.set_name(std::string{func_name});
    
      std::string device_name;
      if (!platform_name.empty()) {
        device_name = absl::StrCat("/device:", platform_name, ":0");
      }
      FunctionLibraryRuntime* flr = pflr->GetFLR(device_name);
      if (flr == nullptr) {
        // Use CPU as the fallback to get the `FunctionLibraryRuntime`.
        flr = pflr->GetFLR("/device:CPU:0");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/xla_tpu_device.cc

        return absl::OkStatus();
      }
    
      int device_count = platform->VisibleDeviceCount();
    
      for (int i = 0; i < device_count; ++i) {
        const string device_name = absl::StrCat("/physical_device:TPU:", i);
        devices->push_back(device_name);
      }
    
      return absl::OkStatus();
    }
    
    Status TpuNodeDeviceFactory::CreateDevices(
        const SessionOptions& session_options, const string& name_prefix,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/python/converter_python_api.cc

        const char* node_name = opdef.name().c_str();
        const char* op_name = opdef.name().c_str();
        const char* device_name = "CPU";
        static auto fake_compute_func = [](void* kernel, TF_OpKernelContext* ctx) {
        };
    
        TF_KernelBuilder* builder =
            TF_NewKernelBuilder(op_name, device_name, /*create_func=*/nullptr,
                                fake_compute_func, /*delete_func=*/nullptr);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api.h

                                                             TF_Status* status);
    
    // Create a new TFE_TensorHandle with the same contents as 'h' but placed
    // in the memory of the device name 'device_name'.
    // If source and destination are the same device, then this creates a new handle
    // that shares the underlying buffer. Otherwise, it currently requires at least
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 27 21:07:00 UTC 2023
    - 22.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/fused_kernel_matcher.cc

      if (!device || device.getValue().empty()) {
        return std::nullopt;
      }
      const std::string device_name = device.str();
      tensorflow::DeviceNameUtils::ParsedName parsed_name;
      if (!tensorflow::DeviceNameUtils::ParseFullName(device_name, &parsed_name)) {
        return std::nullopt;
      }
      if (!parsed_name.has_type) {
        return std::nullopt;
      }
      return parsed_name.type;
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  6. tensorflow/c/eager/parallel_device/parallel_device.cc

    // ParallelDevice.
    void DeleteParallelDevice(void* device_info) {
      delete reinterpret_cast<NamedParallelDevice*>(device_info);
    }
    
    }  // namespace
    
    void AllocateParallelDevice(const char* device_name,
                                const char* const* underlying_devices,
                                int num_underlying_devices,
                                TFE_CustomDevice* device, void** device_info) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 29 22:05:31 UTC 2023
    - 18.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/xla_cluster_util.cc

            flags->xla_auto_jit_flag.optimization_level_general);
      }
    
      return result;
    }
    
    int GetGpuNumber(const string& device_name) {
      DeviceNameUtils::ParsedName parsed_name;
      if (!DeviceNameUtils::ParseFullName(device_name, &parsed_name)) {
        return -1;
      }
    
      return parsed_name.type == DEVICE_GPU ? parsed_name.id : -1;
    }
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 08:39:39 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/kernels/xla_ops.cc

      return launch_context;
    }
    
    Status GetTaskName(const std::string_view device_name, std::string* task_name) {
      string ignored;
      if (!DeviceNameUtils::SplitDeviceName(device_name, task_name, &ignored)) {
        return errors::InvalidArgument("Unable to parse device name: ",
                                       device_name);
      }
    
      return absl::OkStatus();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/stream_executor/stream_executor.h

    //   SP_Device device { SP_DEVICE_STRUCT_SIZE };
    //   SE_CreateDeviceParams params { SE_CREATE_DEVICE_PARAMS_STRUCT_SIZE } ;
    //   params.device = &device;
    //
    //   /* Plugin code below */
    //   constexpr char DEVICE_NAME[] = "MY_DEVICE";
    //   constexpr char DEVICE_TYPE[] = "GPU";
    //
    //   void create_device(const SP_Platform* platform,
    //                      SE_CreateDeviceParams* params, TF_Status* status) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 24 08:40:35 UTC 2022
    - 21.6K bytes
    - Viewed (0)
  10. tensorflow/c/kernels.h

    // some reason, the kernel builder will not be registered, the caller should
    // delete it with TF_DeleteKernelBuilder.
    TF_CAPI_EXPORT extern TF_KernelBuilder* TF_NewKernelBuilder(
        const char* op_name, const char* device_name,
        void* (*create_func)(TF_OpKernelConstruction*),
        void (*compute_func)(void*, TF_OpKernelContext*),
        void (*delete_func)(void*));
    
    // Allocates a new kernel builder and returns a pointer to it.
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 09 22:46:22 UTC 2024
    - 24.6K bytes
    - Viewed (0)
Back to top