Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 42 for getRegions (0.15 sec)

  1. 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)
  2. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

        // Inline the regions from the old while into the new one, and apply
        // signature conversion to inlined region.
        for (auto it : llvm::zip(op.getRegions(), converted.getRegions())) {
          Region &old_region = *std::get<0>(it);
          Region &new_region = *std::get<1>(it);
    
          Block &entry = old_region.front();
          // Build signature conversion for the region.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

          // each region and the use of TensorList returned using YieldOp.
          if (auto while_region = llvm::dyn_cast<WhileRegionOp>(use.getOwner())) {
            DCOMMENT("\tTL WhileRegion");
            for (auto branch : while_region.getRegions())
              add_to_worklist(branch->getArgument(use.getOperandNumber()));
            continue;
          }
          if (auto yield = llvm::dyn_cast<YieldOp>(use.getOwner())) {
            Operation* parent = yield->getParentOp();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

            branch->front().getTerminator()->eraseOperand(next_index);
        }
    
        // Move region bodies to the new op.
        for (auto region_index : llvm::seq<int>(0, branches.size()))
          new_op.getRegion(region_index).takeBody(op.getRegion(region_index));
    
        op.erase();
        return success();
      }
    };
    }  // namespace
    
    void CaseRegionOp::getCanonicalizationPatterns(RewritePatternSet& results,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

            op->getLoc(), op->getName(), types, new_operands, op->getAttrs(),
            op->getPropertiesStorage(), {}, /*numRegions=*/2));
    
        for (int i = 0; i < 2; ++i) new_op->getRegion(i).takeBody(op->getRegion(i));
        int new_index = 0;
        for (int op_index = 0, e = op->getNumResults(); op_index < e; ++op_index) {
          if (removed_operand[op_index]) continue;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  9. pilot/pkg/networking/util/util.go

    func IsLocalityEmpty(locality *core.Locality) bool {
    	if locality == nil || (len(locality.GetRegion()) == 0) {
    		return true
    	}
    	return false
    }
    
    func LocalityMatch(proxyLocality *core.Locality, ruleLocality string) bool {
    	ruleRegion, ruleZone, ruleSubzone := label.SplitLocalityLabel(ruleLocality)
    	regionMatch := ruleRegion == "*" || proxyLocality.GetRegion() == ruleRegion
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/tensor_device_copy_conversion.cc

          // Skip the folding logic if the block argument is not from the function
          // arguments. This can happen when the argument is from a while loop.
          if (block_arg.getParentRegion() != &func_op.getRegion()) {
            return false;
          }
          if (StringAttr attr = func_op.getArgAttrOfType<StringAttr>(
                  block_arg.getArgNumber(), kTFDeviceAttr)) {
            return op_device == attr;
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top