Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 96 for makeBody (0.37 sec)

  1. pkg/apis/core/validation/validation_test.go

    	}{{
    		expectError: false,
    		node:        makeNode("nil-pod-cidr", nil),
    	}, {
    		expectError: false,
    		node:        makeNode("empty-pod-cidr", []string{}),
    	}, {
    		expectError: false,
    		node:        makeNode("single-pod-cidr-4", []string{"192.168.0.0/16"}),
    	}, {
    		expectError: false,
    		node:        makeNode("single-pod-cidr-6", []string{"2000::/10"}),
    	},
    
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/parallel_execute_to_islands.cc

            island_op.getControl().getType(), island_op.getControlInputs());
    
        // Move over tf_device.parallel_execute body region into newly the created
        // island.
        execute_island.getBody().takeBody(*execute_block.getParent());
    
        // In new graph export pipeline, we will update control dependencies in the
        // end of the pipeline. Mostly, it will rely on side effect analysis by
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 19 19:47:16 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  3. src/runtime/slice_test.go

    				copy(x, ints)
    			}
    		})
    		b.Run("Ptr", func(b *testing.B) {
    			var x []*byte
    			for i := 0; i < b.N; i++ {
    				x = make([]*byte, len(ptrs))
    				copy(x, ptrs)
    			}
    
    		})
    	})
    	b.Run("makecopy", func(b *testing.B) {
    		b.Run("Byte", func(b *testing.B) {
    			var x []byte
    			for i := 0; i < b.N; i++ {
    				x = make([]byte, 8*length)
    				copy(x, bytes)
    			}
    		})
    		b.Run("Int", func(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 17 09:45:44 UTC 2020
    - 10.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/breakup-islands.cc

        OperationState state(item.getLoc(), item.getName());
        types.assign(item.result_type_begin(), item.result_type_end());
        state.addTypes(types);
        for (Region& region : item.getRegions()) {
          state.addRegion()->takeBody(region);
        }
        // Assign existing operands for item.
        operands.assign(item.operand_begin(), item.operand_end());
    
        // Collect defining ops for existing operands.
        defining_ops.clear();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 11 20:52:36 UTC 2023
    - 16.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc

      // Move region bodies to the new operation.
      for (auto it : llvm::zip(op->getRegions(), new_op->getRegions())) {
        Region &old_region = std::get<0>(it);
        Region &new_region = std::get<1>(it);
        new_region.takeBody(old_region);
      }
    
      // Replace used results and erase the old op.
      int next_result_idx = 0;
      for (OpResult result : op->getResults()) {
        if (can_eliminate(result)) continue;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc

        new_types.pop_back();
    
        llvm::SmallVector<std::unique_ptr<Region>, 1> new_regions;
        for (auto &region : op->getRegions()) {
          new_regions.push_back(std::make_unique<Region>());
          new_regions.back()->takeBody(region);
        }
    
        llvm::SmallVector<NamedAttribute, 4> attrs;
        if (failed(ReformatOpAttributes(getContext(), op->getAttrs(), attrs)))
          return failure();
    
        Operation *inner_op;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc

      for (auto region : llvm::zip(new_parallel_execute_op->getRegions(),
                                   parallel_execute_op->getRegions()))
        std::get<0>(region).takeBody(std::get<1>(region));
    
      // Remove the original parallel_execute.
      parallel_execute_op->dropAllUses();
      parallel_execute.erase();
    }
    
    // Replaces TPUExecute with TPUExecuteAndUpdateVariables.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 17:52:11 UTC 2024
    - 27K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

            /*parallel_iterations=*/10,
            /*is_stateless=*/false, /*shape_invariant=*/false);
        new_while.getCond().takeBody(while_op.getCond());
        new_while.getBody().takeBody(while_op.getBody());
        ReplaceReturnOp(new_while.getCond(), rewriter);
        ReplaceReturnOp(new_while.getBody(), rewriter);
        rewriter.replaceOp(while_op, new_while.getResults());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/convert_control_to_data_outputs.cc

      // function.
      OpBuilder builder(graph_op);
      auto new_graph_op =
          builder.create<GraphOp>(graph_op.getLoc(), new_result_types);
      new_graph_op.getRegion().takeBody(graph_op.getRegion());
      graph_op->replaceAllUsesWith(
          new_graph_op->getResults().drop_back(num_resources));
      graph_op.erase();
      func::ReturnOp return_op = cast<func::ReturnOp>(block.getTerminator());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/region_control_flow_to_functional.cc

      // Create new function and extract region body into the function.
      auto outlined_func = builder.create<func::FuncOp>(loc, name, type);
      Region& func_region = outlined_func.getBody();
      func_region.takeBody(region);
      Block& first_block = func_region.front();
    
      // Replace all external uses with function arguments.
      for (auto it : llvm::enumerate(extern_values)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
Back to top