Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for IsCpuRead (0.15 sec)

  1. tensorflow/compiler/mlir/tf2xla/internal/passes/hoist_broadcast_read.cc

      if (parent == ancestor) return descendant;
      return GetAncestorBelow(parent, ancestor);
    }
    
    // `is_cpu_read` is set to `true` iff `read` is on a resource with device type
    // CPU.
    LogicalResult IsCpuRead(FuncOp func, ReadVariableOp read, bool& is_cpu_read) {
      if (auto arg = mlir::dyn_cast<BlockArgument>(read->getOperand(0))) {
        if (arg.getOwner() != &(func.front())) {
          is_cpu_read = false;
          return success();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.3K bytes
    - Viewed (0)
Back to top