Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 34 for MoveBefore (0.66 sec)

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

      op->replaceAllUsesWith(launch);
    
      builder->setInsertionPointToEnd(&launch.GetBody());
      builder->create<tf_device::ReturnOp>(loc, op->getResults());
    
      // Move op inside cluster.
      op->moveBefore(launch.GetBody().getTerminator());
    }
    
    llvm::SmallVector<Operation*, 4> GetResourceOpsUsingCompositeArgsInReplicate(
        tf_device::ReplicateOp replicate) {
      llvm::SmallVector<Operation*, 4> resource_users;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 16 17:41:12 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/passes/hoist_broadcast_read.cc

          if (read->isBeforeInBlock(peer)) continue;
          if (llvm::isa<ReadVariableOp>(peer)) continue;
          has_conflicting_write = true;
        }
        if (has_conflicting_write) continue;
        read->moveBefore(replicate);
      }
    }
    
    // Hoist `ReadVariableOp`s above the `tf_device.replicate`s.
    void HoistBroadcastRead::runOnOperation() {
      FuncOp func = getOperation();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_cluster_formation.cc

      auto cluster = builder.create<mlir::tf_device::ClusterOp>(
          call_op->getLoc(), call_op->getResultTypes());
      cluster.getBody().push_back(new Block);
      call_op->replaceAllUsesWith(cluster.getResults());
      call_op->moveBefore(&cluster.GetBody(), cluster.GetBody().end());
      builder.setInsertionPointToEnd(&cluster.GetBody());
      builder.create<mlir::tf_device::ReturnOp>(call_op->getLoc(),
                                                call_op->getResults());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 19:09:44 UTC 2023
    - 6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/tpu_parallel_execute_sink_resource_write.cc

          // Move AssignVariableOp and update the value to be written to the
          // resource variable to be the non forwarded value from within the
          // parallel_execute region.
          assign_var.getOperation()->moveBefore(terminator);
          assign_var.getValueMutable().assign(
              terminator->getOperand(result.index()));
          results_to_remove.push_back(result.index());
        }
    
        rewrite |= !results_to_remove.empty();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 06 04:46:18 UTC 2022
    - 6.6K bytes
    - Viewed (0)
  5. test/typeparam/listimp2.dir/a.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[T]) MoveBefore(e, mark *Element[T]) {
    	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: Wed Jul 28 21:40:40 UTC 2021
    - 8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/partitioned_topological_sort.cc

            num_partitions_after += op_partition && (scheduled_something == false);
            scheduled_something = true;
            // Schedule the operation by moving it to the start.
            unscheduled_op.moveBefore(block, next_unscheduled_op);
            if (&unscheduled_op == &*next_unscheduled_op) {
              ++next_unscheduled_op;
            }
          }
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 15:05:28 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/replicate_invariant_op_hoisting.cc

        // defined by tf_device.replicate.
        if (DescendantUsesVirtualDevice(virtual_device_list, &inner_op)) continue;
    
        if (IsOpReplicateInvariant(replicate_region, &inner_op))
          inner_op.moveBefore(replicate_op);
      }
    }
    
    void ReplicateInvariantOpHoistingPass::runOnOperation() {
      getOperation().walk(
          [](tf_device::ReplicateOp op) { HoistReplicateInvariantOps(op); });
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc

                                                              cluster.getResults());
      }
    
      for (auto pi : partitioned_inputs) pi->moveBefore(result_op);
    
      cluster.getOperation()->moveBefore(result_op);
    
      return success();
    }
    
    // Forms clusters with ops of the same `_replication_info` attribute under a
    // block.
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 39.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/cluster_formation.cc

      // Move all operations in cluster to newly created region, stripping their
      // "device" attribute since launch op already carries device information.
      Block* block = &region.front();
      for (Operation* op : c.ops) {
        op->moveBefore(block, block->end());
        op->removeAttr(builder->getStringAttr("device"));
      }
    
      // Get all escaped live-out values of region, they are used later to determine
      // return values and types of launch op.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 05 13:30:21 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/translate/split_into_island_per_op_pass.cc

      Block* block = &island.getBody().back();
      OpBuilder island_builder(original_island);
      island_builder.setInsertionPointToEnd(block);
      sub_op.replaceAllUsesWith(island.getOutputs());
      sub_op.moveBefore(block, block->begin());
      island_builder.create<tf_executor::YieldOp>(loc, sub_op.getResults());
      return island;
    }
    
    // Converts a single island into multiple islands (one for each op).
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 17 07:31:01 UTC 2023
    - 7.3K bytes
    - Viewed (0)
Back to top