Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for MoveBefore (0.42 sec)

  1. src/container/list/list_test.go

    	l.MoveBefore(e2, e2)
    	checkListPointers(t, l, []*Element{e1, e2, e3, e4})
    
    	l.MoveAfter(e3, e2)
    	checkListPointers(t, l, []*Element{e1, e2, e3, e4})
    	l.MoveBefore(e2, e3)
    	checkListPointers(t, l, []*Element{e1, e2, e3, e4})
    
    	l.MoveBefore(e2, e4)
    	checkListPointers(t, l, []*Element{e1, e3, e2, e4})
    	e2, e3 = e3, e2
    
    	l.MoveBefore(e4, e1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 7.7K bytes
    - Viewed (0)
  2. test/typeparam/listimp2.dir/main.go

    	l.MoveAfter(e3, e3)
    	a.CheckListPointers(l, []*(a.Element[int]){e1, e2, e3, e4})
    	l.MoveBefore(e2, e2)
    	a.CheckListPointers(l, []*(a.Element[int]){e1, e2, e3, e4})
    
    	l.MoveAfter(e3, e2)
    	a.CheckListPointers(l, []*(a.Element[int]){e1, e2, e3, e4})
    	l.MoveBefore(e2, e3)
    	a.CheckListPointers(l, []*(a.Element[int]){e1, e2, e3, e4})
    
    	l.MoveBefore(e2, e4)
    	a.CheckListPointers(l, []*(a.Element[int]){e1, e3, e2, e4})
    	e2, e3 = e3, e2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  3. test/typeparam/list2.go

    	l.MoveAfter(e3, e3)
    	checkListPointers(l, []*(_Element[int]){e1, e2, e3, e4})
    	l.MoveBefore(e2, e2)
    	checkListPointers(l, []*(_Element[int]){e1, e2, e3, e4})
    
    	l.MoveAfter(e3, e2)
    	checkListPointers(l, []*(_Element[int]){e1, e2, e3, e4})
    	l.MoveBefore(e2, e3)
    	checkListPointers(l, []*(_Element[int]){e1, e2, e3, e4})
    
    	l.MoveBefore(e2, e4)
    	checkListPointers(l, []*(_Element[int]){e1, e3, e2, e4})
    	e2, e3 = e3, e2
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/device_attribute_to_launch.cc

          builder.create<tf_device::ReturnOp>(op->getLoc(), op->getResults())
              .getOperation();
      MLIRContext* context = launch_op.getContext();
      op->removeAttr(StringAttr::get(context, kDeviceAttr));
      op->moveBefore(return_op);
    }
    
    void DeviceAttributeToLaunch::runOnOperation() {
      const Dialect* tf_dialect = getContext().getLoadedDialect("tf");
    
      getOperation().walk([&](Operation* op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 04 00:59:46 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/xla_inline_device_ops.cc

      llvm::SmallVector<Operation*, 4> non_terminator_ops;
      for (Operation& op : block.without_terminator()) {
        non_terminator_ops.push_back(&op);
      }
      for (auto op : non_terminator_ops) {
        op->moveBefore(cluster_op);
      }
    
      auto& return_op = cluster_op.GetBody().front();
      // This is the last op, should be tf_device::ReturnOp.
      assert(mlir::isa<mlir::tf_device::ReturnOp>(return_op));
    
      Value old_val, new_val;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 04 00:59:46 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/layout_optimization.cc

              operand->get().getType() ==
                  ShuffleRankedTensorType(ranked_tranpose_type, permutation)) {
            TransposeOp transpose = tranpose_op;
            transpose.getOperation()->moveBefore(op);
            transpose.setOperand(0, operand->get());
            transpose.setOperand(1, permutation_op);
            transpose_ops->erase(it);
            return transpose;
          }
        }
      }
      return nullptr;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_program_key.cc

      }
      Block* old_block = preprocess_op->getBlock();
      Block* launch_block = new Block;
      for (Operation& op : llvm::make_early_inc_range(old_block->getOperations())) {
        if (ops_to_move.contains(&op)) {
          op.moveBefore(launch_block, launch_block->end());
        }
      }
    
      // Create the new launch op after TPUCompileOp with the preprocessing ops.
      tf_device::LaunchOp moved_launch_op =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/sink_constant.cc

              return;
            }
            if (constant.hasOneUse()) {
              LLVM_DEBUG(llvm::dbgs() << "Moved constant " << constant << "\n");
              const_op.getOperation()->moveBefore(&body.begin()->front());
              return;
            }
            map_entry.first->getSecond() = const_op.clone();
            body.begin()->getOperations().insert(body.begin()->begin(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  9. src/container/list/list.go

    		return
    	}
    	// see comment in List.Remove about initialization of l
    	l.move(e, l.root.prev)
    }
    
    // MoveBefore moves element e to its new position before mark.
    // If e or mark is not an element of l, or e == mark, the list is not modified.
    // The element and mark must not be nil.
    func (l *List) MoveBefore(e, mark *Element) {
    	if e.list != l || e == mark || mark.list != l {
    		return
    	}
    	l.move(e, mark.prev)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/xla_rewrite_util.cc

      launch.getBody().push_back(new mlir::Block);
    
      builder->setInsertionPointToEnd(&launch.GetBody());
      builder->create<mlir::tf_device::ReturnOp>(loc, op->getResults());
    
      // Move op inside cluster.
      op->moveBefore(launch.GetBody().getTerminator());
    
      builder->restoreInsertionPoint(insert_point);
    
      return launch;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 13 03:57:18 UTC 2023
    - 4.4K bytes
    - Viewed (0)
Back to top