Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for ParsedName (0.37 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_structs.h

    class RuntimeDevices {
      using DeviceNameUtils = ::tensorflow::DeviceNameUtils;
      using ParsedName = ::tensorflow::DeviceNameUtils::ParsedName;
    
     public:
      // Adds a device with and empty metadata. Device can be of any type.
      void AddDevice(const ParsedName& device);
    
      // Adds a GPU device with GPU specific metadata.
      void AddGpuDevice(const ParsedName& device,
                        const GpuDeviceMetadata& metadata);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 02 20:41:19 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_device_helper.cc

    #include "tensorflow/core/util/device_name_utils.h"
    
    namespace mlir {
    namespace TF {
    namespace {
    using DeviceNameUtils = ::tensorflow::DeviceNameUtils;
    using ParsedName = ::tensorflow::DeviceNameUtils::ParsedName;
    
    bool IsGpuDevice(const DeviceNameUtils::ParsedName &device) {
      return device.type == ::tensorflow::DEVICE_GPU;
    }
    
    }  // namespace
    
    // Returns true if at least one GPU device is available at runtime.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 21 08:41:18 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_structs.cc

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_structs.h"
    
    #include <optional>
    
    namespace mlir {
    namespace TF {
    
    void RuntimeDevices::AddDevice(const ParsedName& device) {
      device_names_.push_back(device);
    }
    
    void RuntimeDevices::AddGpuDevice(const ParsedName& device,
                                      const GpuDeviceMetadata& metadata) {
      device_names_.push_back(device);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 02 20:41:19 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/device_util.cc

      // TODO(sanjoy): Cache DeviceNameUtils::ParsedName inside device_info_cache.
      const auto is_multiple_devices =
          [&](const jit::DeviceId& d0, std::optional<jit::DeviceId>* d1) -> bool {
        const absl::string_view name0 = device_info_cache.GetNameFor(d0);
        const absl::string_view name1 = device_info_cache.GetNameFor(d1->value());
    
        DeviceNameUtils::ParsedName parsed0, parsed1;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  5. src/crypto/x509/verify.go

    // given name, of type nameType. The argument parsedName contains the parsed
    // form of name, suitable for passing to the match function. The total number
    // of comparisons is tracked in the given count and should not exceed the given
    // limit.
    func (c *Certificate) checkNameConstraints(count *int,
    	maxConstraintComparisons int,
    	nameType string,
    	name string,
    	parsedName any,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:58:39 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/utils/device_util.cc

    mlir::LogicalResult GetDevicesFromOp(mlir::Operation* op,
                                         mlir::ArrayAttr array_attr,
                                         mlir::TF::RuntimeDevices* devices) {
      DeviceNameUtils::ParsedName device;
    
      for (const auto& kv : llvm::enumerate(array_attr)) {
        const int idx = kv.index();
    
        auto string_attr = mlir::dyn_cast<mlir::StringAttr>(kv.value());
        if (!string_attr)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/rewrite_util.cc

      mlir::StringAttr device = op->getAttrOfType<mlir::StringAttr>(kDeviceAttr);
      if (!device || device.getValue().empty()) {
        return std::nullopt;
      }
      tensorflow::DeviceNameUtils::ParsedName parsed_name;
      if (!tensorflow::DeviceNameUtils::ParseFullName(device.str(), &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: Wed May 22 19:47:48 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/cluster_tf_ops_pass.cc

    #include "tensorflow/core/util/device_name_utils.h"
    
    namespace mlir {
    namespace TF {
    namespace {
    
    using DeviceNameUtils = ::tensorflow::DeviceNameUtils;
    using ParsedName = ::tensorflow::DeviceNameUtils::ParsedName;
    
    constexpr const char *kHostAttr = "host";
    constexpr const char *kDeviceAttr = "device";
    constexpr const char *kTFDeviceAttr = "tf.device";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/utils/device_util_test.cc

      Status Sync() override { return errors::Unimplemented("FakeDevice::Sync()"); }
    
      static std::unique_ptr<Device> Make(const string& name,
                                          const string& desc = "") {
        DeviceNameUtils::ParsedName parsed_name;
        DeviceNameUtils::ParseFullName(name, &parsed_name);
    
        DeviceAttributes device_attributes;
        device_attributes.set_name(name);
        device_attributes.set_device_type(parsed_name.type);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/ir/tf_ops.cc

      // LINT.IfChange
      auto device_id = StringAttr::get(call->getContext(), "device");
      auto caller_device = call->getAttrOfType<StringAttr>(device_id);
      if (!caller_device) return;
    
      DeviceNameUtils::ParsedName caller_parsed_device;
      if (!DeviceNameUtils::ParseFullName(caller_device.getValue().str(),
                                          &caller_parsed_device))
        return;
    
      MLIRContext *context = call->getContext();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.6K bytes
    - Viewed (0)
Back to top