Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for hasOneBlock (0.2 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/call_graph_util.cc

        }
        callees.push_back(callee);
      }
      return success();
    }
    
    bool HasSingleBlock(func::FuncOp func) {
      return func->getNumRegions() == 1 && func.getBody().hasOneBlock();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_duplicate_resource_ops.cc

      // Check if the island has only one block thats contain two ops, including
      // one resource op and one Yield op.
      auto island_op = llvm::dyn_cast_or_null<IslandOp>(op);
      if (!island_op || !island_op.getBody().hasOneBlock()) return nullptr;
      auto& island_block = island_op.getBody().front();
      if (++island_block.begin() != --island_block.end()) return nullptr;
    
      Operation* resource_op = &island_block.front();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 26 04:26:16 UTC 2023
    - 4.7K bytes
    - Viewed (0)
Back to top