Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for IsGpuDevice (0.14 sec)

  1. 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)
Back to top