Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 33 for getRegions (0.48 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc

      execute_launch.erase();
    
      // Move all regions from old parallel_execute to new parallel_execute.
      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();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 17:52:11 UTC 2024
    - 27K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_to_vhlo.cc

            rewriter.setInsertionPointAfter(value.getDefiningOp());
            ConvertAndWrapUsesInUnrealizedCast(value, converter, rewriter);
          }
    
          // Convert block arguments
          for (auto &region : op->getRegions()) {
            for (auto &block : region.getBlocks()) {
              rewriter.setInsertionPointToStart(&block);
              for (auto arg : block.getArguments()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 19:48:51 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/resource_device_inference.cc

                         << "  No device for output #" << output_index << "\n");
              continue;
            }
            // Transfer the annotation to both region arguments
            for (Region* region : while_region.getRegions()) {
              BlockArgument arg = region->getArgument(output_index);
              LLVM_DEBUG(llvm::dbgs()
                         << "  Propagating device = '" << *device << "' to arg #"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 03:47:00 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc

        OperationState state(op->getLoc(), op->getName().getStringRef(), operands,
                             new_results, op->getAttrs(), op->getSuccessors());
        for (Region &region : op->getRegions()) {
          Region &new_region = *state.addRegion();
          rewriter.inlineRegionBefore(region, new_region, new_region.begin());
          if (failed(rewriter.convertRegionTypes(&new_region, *getTypeConverter())))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/breakup-islands.cc

        builder.setInsertionPoint(&item);
        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.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 11 20:52:36 UTC 2023
    - 16.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize.cc

          if (quantizing_op->getNumRegions() != 0) {
            for (const auto& indexed_regions :
                 llvm::enumerate(quantizing_op->getRegions())) {
              IRMapping mapping;
              indexed_regions.value().cloneInto(
                  &quantized_op->getRegion(indexed_regions.index()), mapping);
            }
          }
          for (const auto& output_index_pair : outputs_replaced) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/stack_ops_decomposition.cc

                 << result.getResultNumber()
                 << ", resource type results are expected to have been "
                    "canonicalized away for region based control flow ops";
        }
      }
      for (Region& region : op.getRegions()) {
        if (failed(DecomposeStackOpsInternal(&region.front(), module,
                                             data_var_to_size_var,
                                             decomposed_partitioned_call_callees)))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc

    //===----------------------------------------------------------------------===//
    
    LogicalResult ParallelExecuteOp::verify() {
      ParallelExecuteOp op = *this;
      const auto& regions = op.getOperation()->getRegions();
      if (regions.empty()) {
        return op.emitOpError() << "must have at least one region.";
      }
    
      int output_index = 0;
      for (const auto& region_and_index : llvm::enumerate(regions)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h

          if (quantizing_op->getNumRegions() != 0) {
            for (const auto& indexed_regions :
                 llvm::enumerate(quantizing_op->getRegions())) {
              Region& target_region =
                  quantized_op->getRegion(indexed_regions.index());
              IRMapping mapping;
              indexed_regions.value().cloneInto(&target_region, mapping);
            }
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc

      // If there is no TPUReplicateMetadata op in this block, process blocks in
      // regions attached to the op's in the block.
      if (metadata_map.empty()) {
        for (Operation& op : *block) {
          for (Region& region : op.getRegions()) {
            if (!llvm::hasSingleElement(region))
              return op.emitOpError("Expected single block region");
            if (failed(FormClustersInBlock(&region.front(), side_effect_analysis,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 39.3K bytes
    - Viewed (0)
Back to top