Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for device_str (0.61 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

      auto device_attr = op->getAttrOfType<StringAttr>("device");
      if (!device_attr || device_attr.getValue().empty()) return device_ordinal_str;
    
      // TODO(b/229028654) Remove string conversion once implicit conversion between
      // llvm::StringRef and absl::string_view works.
      absl::string_view device_str(device_attr.data(), device_attr.size());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/encapsulate_subgraphs_pass_test.cc

      TF_CHECK_OK(DeviceFactory::AddDevices(
          session_options, "/job:localhost/replica:0/task:0", &devices));
      OptimizerOptions opts;
      auto device_mgr = std::make_unique<StaticDeviceMgr>(std::move(devices));
      auto pflr = std::make_unique<ProcessFunctionLibraryRuntime>(
          device_mgr.get(), Env::Default(), /*config=*/nullptr,
          TF_GRAPH_DEF_VERSION, lib_def.get(), opts,
          /*default_thread_pool=*/nullptr, /*cluster_flr=*/nullptr);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 113.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

    std::optional<std::string> NcclAllReduceOp::GetResourceInstanceStr() {
      auto device_attr = (*this)->getAttrOfType<StringAttr>("device");
      // Treat missing device attribute like unspecified (= empty string) attribute.
      // Note that different op instances with the same string (including empty
      // string) are seen as dependent (same resource instance).
      if (!device_attr) return "";
      return device_attr.str();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  4. tensorflow/c/c_api.cc

    #include "tensorflow/c/c_api_internal.h"
    #include "tensorflow/c/tf_buffer_internal.h"
    #include "tensorflow/c/tf_status_internal.h"
    #include "tensorflow/c/tf_tensor.h"
    #include "tensorflow/core/common_runtime/device_mgr.h"
    #include "tensorflow/core/common_runtime/eval_const_tensor.h"
    #include "tensorflow/core/common_runtime/graph_constructor.h"
    #include "tensorflow/core/common_runtime/shape_refiner.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 102.3K bytes
    - Viewed (0)
Back to top