Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. tensorflow/compiler/mlir/tensorflow/transforms/merge_control_flow.cc

        : public impl::MergeControlFlowPassBase<MergeControlFlowPass> {
      void runOnOperation() override;
    };
    
    // Gets the IfRegion op and all of ops in the then and else branches.
    llvm::SmallSetVector<Operation*, 4> GetAllOpsFromIf(TF::IfRegionOp if_op) {
      llvm::SmallSetVector<Operation*, 4> all_ops;
      all_ops.insert(if_op);
      for (Operation& op : if_op.getThenBranch().front()) {
        all_ops.insert(&op);
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 17 07:31:01 UTC 2023
    - 25.9K bytes
    - Viewed (0)
Back to top