- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for IsGpuDevice (0.19 sec)
-
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_device_helper.cc
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. bool CanUseGpuDevice(const RuntimeDevices &devices) { return llvm::any_of(devices.device_names(), IsGpuDevice); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 21 08:41:18 UTC 2022 - 2.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/fused_kernel_matcher.cc
return std::nullopt; } if (!parsed_name.has_type) { return std::nullopt; } return parsed_name.type; } bool IsGpuDevice(mlir::Operation *op) { std::optional<std::string> device = GetDevice(op); if (!device) return false; return *device == kDeviceGpu; } // Performs a fusion of the following pattern(s), if possible:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.9K bytes - Viewed (0)