Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 96 for makeBody (0.17 sec)

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

          parallel_execute.getLoc(), num_regions, new_result_types);
    
      for (auto region : llvm::zip(new_parallel_execute.getRegions(),
                                   parallel_execute.getRegions()))
        std::get<0>(region).takeBody(std::get<1>(region));
    
      for (auto result :
           llvm::zip(results_to_remap, new_parallel_execute.getResults()))
        std::get<0>(result).replaceAllUsesWith(std::get<1>(result));
    
      parallel_execute.erase();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 06 04:46:18 UTC 2022
    - 6.6K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/devicemanager/manager_test.go

    	as.Nil(err)
    
    	testPods := []*v1.Pod{
    		makePod(v1.ResourceList{
    			v1.ResourceName(res1.resourceName): res1.resourceQuantity,
    			v1.ResourceName("cpu"):             res1.resourceQuantity,
    			v1.ResourceName(res2.resourceName): res2.resourceQuantity}),
    		makePod(v1.ResourceList{
    			v1.ResourceName(res1.resourceName): res2.resourceQuantity}),
    		makePod(v1.ResourceList{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

                                         region_if.getPred());
    
      // Move all regions from the old `mhlo.if` op to its replacement.
      new_if.getTrueBranch().takeBody(region_if.getTrueBranch());
      new_if.getFalseBranch().takeBody(region_if.getFalseBranch());
    
      // Forward result from old `mhlo.if` with replacement.
      SmallVector<Value> old_if_results = region_if.getResults();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc

      auto new_cluster = builder->create<mlir::tf_device::ClusterOp>(
          cluster.getLoc(), new_cluster_result_types,
          /*operands=*/llvm::ArrayRef<Value>{}, cluster->getAttrs());
      new_cluster.getBody().takeBody(cluster.getBody());
    
      auto operand_not_in_cluster = [&](mlir::OpOperand& operand) {
        return !new_cluster.getOperation()->isProperAncestor(operand.getOwner());
      };
      for (auto result :
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/extract_tpu_copy_with_dynamic_shape_op.cc

      auto new_launch_op = builder.create<tf_device::LaunchOp>(
          old_launch_op->getLoc(), old_launch_op->getDeviceAttr(),
          /*result_types=*/new_launch_op_results_types);
    
      new_launch_op.getBody().takeBody(old_launch_op->getBody());
      new_launch_op.GetBody().getTerminator()->setOperands(new_launch_op_results);
    
      return new_launch_op;
    }
    
    // Create the new device launch op which wraps the copy op.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc

          auto new_while_op = GetUpdatedWhileOp(
              while_op, while_op.getCond().getArgumentTypes(), args_to_erase);
          new_while_op.getCond().takeBody(while_op.getCond());
          new_while_op.getBody().takeBody(while_op.getBody());
          llvm::BitVector erase_indices;
          UpdateTerminatorArguments(new_while_op.getBody(), args_to_erase,
                                    erase_indices);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 09:56:53 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/pin_ops_with_side_effects.cc

        region.push_back(new_block);
        builder.setInsertionPointToEnd(&region.front());
        Operation *inner_op = builder.clone(*op);
        builder.create<YieldOp>(loc, inner_op->getResults());
        outer_op.getBody().takeBody(region);
        // Careful: We can't use outer_op.getResults(), because that also includes
        // the control token.
        op->replaceAllUsesWith(outer_op.getOutputs());
        op->erase();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_outline_tpu_island.cc

        // We will "steal" the body of the island and replace it with a call to the
        // new function later.
        {
          YieldOp yield_op = island_op.GetYield();
          outlined_func.getBody().takeBody(island_op.getBody());
    
          // Replace the yield with a return
          OpBuilder replacer(yield_op);
          island_op.getBody().push_back(new Block);
          replacer.create<mlir::func::ReturnOp>(yield_op.getLoc(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/cpumanager/cpu_manager_test.go

    type mockPodStatusProvider struct {
    	podStatus v1.PodStatus
    	found     bool
    }
    
    func (psp mockPodStatusProvider) GetPodStatus(uid types.UID) (v1.PodStatus, bool) {
    	return psp.podStatus, psp.found
    }
    
    func makePod(podUID, containerName, cpuRequest, cpuLimit string) *v1.Pod {
    	pod := &v1.Pod{
    		Spec: v1.PodSpec{
    			Containers: []v1.Container{
    				{
    					Resources: v1.ResourceRequirements{
    						Requests: v1.ResourceList{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 06 13:16:15 UTC 2023
    - 42.9K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/volumezone/volume_zone_test.go

    	"k8s.io/kubernetes/pkg/scheduler/internal/cache"
    	st "k8s.io/kubernetes/pkg/scheduler/testing"
    	tf "k8s.io/kubernetes/pkg/scheduler/testing/framework"
    )
    
    func createPodWithVolume(pod, pvc string) *v1.Pod {
    	return st.MakePod().Name(pod).Namespace(metav1.NamespaceDefault).PVC(pvc).Obj()
    }
    
    func TestSingleZone(t *testing.T) {
    	pvLister := tf.PersistentVolumeLister{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 14 05:17:04 UTC 2023
    - 20K bytes
    - Viewed (0)
Back to top