Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 29 for set_device (0.16 sec)

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

          event_handle_ = nullptr;
        }
      }
    
      SP_Event Handle() { return event_handle_; }
    
     private:
      SP_Device* device_;
      SP_StreamExecutor* stream_executor_;
      SP_Event event_handle_;
    };
    
    class CStream : public StreamCommon {
     public:
      CStream(SP_Device* device, SP_StreamExecutor* stream_executor,
              StreamExecutor* executor)
          : StreamCommon(executor),
            device_(device),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 14 07:39:19 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/xla_platform_info_test.cc

    };
    
    #if GOOGLE_CUDA || TENSORFLOW_USE_ROCM
    TEST_F(XlaPlatformInfoTest, BuildXlaDeviceCompilerXlaDeviceMetadata) {
      device_setup_.AddDevicesAndSetUp({DEVICE_XLA_GPU});
    
      Device* device = device_setup_.GetDevice(DEVICE_XLA_GPU);
      const XlaDevice::Metadata* metadata = nullptr;
      TF_CHECK_OK(XlaDevice::GetMetadataFromDevice(device, &metadata));
      XlaPlatformInfo platform_info = XlaPlatformInfoFromDevice(device);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Jan 14 15:17:12 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_test_util.cc

      TF_DeleteStatus(status);
    
      TFE_OpSetAttrType(op, "T", TFE_TensorHandleDataType(in));
      TFE_OpSetAttrString(op, "tensor_name", "dummy", 5);
      TFE_OpSetAttrString(op, "send_device", send_device.c_str(),
                          send_device.size());
      TFE_OpSetAttrString(op, "recv_device", recv_device.c_str(),
                          recv_device.size());
      TFE_OpSetAttrInt(op, "send_device_incarnation", send_device_incarnation);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 22:37:46 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/launch_to_device_attribute.cc

            return WalkResult::advance();
          } else if (device_str_attr.getValue() != launch.getDevice()) {
            return launch.emitOpError()
                   << "inner op has conflicting 'device' attribute, "
                      "got '"
                   << device_str_attr.getValue() << "' but expected '"
                   << launch.getDevice() << "'";
          }
        } else {
          return launch.emitOpError()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  5. pkg/volume/volume.go

    type CustomBlockVolumeMapper interface {
    	BlockVolumeMapper
    	// SetUpDevice prepares the volume to the node by the plugin specific way.
    	// For most in-tree plugins, attacher.Attach() and attacher.WaitForAttach()
    	// will do necessary works.
    	// This may be called more than once, so implementations must be idempotent.
    	// SetUpDevice returns stagingPath if device setup was successful
    	SetUpDevice() (stagingPath string, err error)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/stream_executor/stream_executor.cc

                              SP_DEVICE_MEMORY_BASE_STRUCT_SIZE);
      // All other fields could theoretically be zero/null.
      return absl::OkStatus();
    }
    
    absl::Status ValidateSPDevice(const SP_Device& device) {
      TF_VALIDATE_STRUCT_SIZE(SP_Device, device, SP_DEVICE_STRUCT_SIZE);
      // All other fields could theoretically be zero/null.
      return absl::OkStatus();
    }
    
    absl::Status ValidateSPDeviceFns(const SP_DeviceFns& device_fns) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 14 07:39:19 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/xla_device.h

    // registered on 'jit_device'. Returns ownership of a XlaDeviceOpRegistrations
    // object that encapsulates the kernel registrations.
    struct XlaDeviceOpRegistrations {
      std::vector<std::unique_ptr<kernel_factory::OpKernelRegistrar>>
          op_kernel_registrars;
    };
    
    XlaDeviceOpRegistrations* RegisterXlaDeviceKernels(
        const char* device, const char* jit_device,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/utils/cluster_util_test.cc

      OwningOpRef<ModuleOp> mlir_module;
      auto status =
          tensorflow::DeserializeMlirModule(string, context, &mlir_module);
      if (!status.ok()) {
        return status;
      }
      return mlir_module;
    }
    
    std::string GetDevice(Operation* op) {
      auto device_attr = op->getAttrOfType<StringAttr>("device");
      return device_attr ? device_attr.getValue().str() : "";
    }
    
    bool CanBeIgnoredInCluster(Operation* op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/xla_device.cc

    XlaDeviceOpRegistrations* RegisterXlaDeviceKernels(
        const char* device, const char* jit_device,
        OpKernel* (*factory)(OpKernelConstruction*),
        StringPiece kernel_class_name) {
      XlaOpRegistry::RegisterCompilationKernels();
      XlaDeviceOpRegistrations* registrations = new XlaDeviceOpRegistrations;
      for (const KernelDef* jit_def : XlaOpRegistry::DeviceKernels(
               jit_device,
               /*include_compilation_only_kernels=*/false)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 21:05:42 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/test_util.cc

          TF_GRAPH_DEF_VERSION, lib_def_.get(), opts,
          /*default_thread_pool=*/nullptr, /*cluster_flr=*/nullptr);
      flr_ = pflr_->GetFLR("/job:localhost/replica:0/task:0/cpu:0");
    }
    
    Device* DeviceSetup::GetDevice(const string& device_name) {
      if (device_mgr_ == nullptr) {
        return nullptr;
      }
    
      string full_device_name = absl::StrCat(
          "/job:localhost/replica:0/task:0/device:", device_name, ":0");
      Device* device;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 11:36:41 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top