Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 84 for getRegion (0.53 sec)

  1. 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)
  2. tensorflow/compiler/mlir/quantization/common/lift_as_function_call_test.cc

      ASSERT_TRUE(module_op);
    
      func::FuncOp main_fn = FindMainFuncOp(*module_op);
      ASSERT_THAT(main_fn, NotNull());
    
      auto if_op = FindOperationOfType<mlir::stablehlo::IfOp>(main_fn);
      Block& block = if_op->getRegion(0).front();
      Operation& add_op = *absl::c_find_if(block, [](Operation& entry) {
        return dyn_cast_or_null<::mlir::stablehlo::AddOp>(&entry);
      });
      EXPECT_TRUE(IsInStableHloOpRegion(&add_op));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc

        Region* region = state.addRegion();
        region->push_back(new Block);
      }
      state.addTypes(output_types);
    }
    
    Block& ParallelExecuteOp::GetRegionBlockWithIndex(unsigned index) {
      return getOperation()->getRegion(index).front();
    }
    
    Operation::result_range ParallelExecuteOp::GetRegionOutputs(
        unsigned region_index) {
      int num_region_results =
          GetRegionBlockWithIndex(region_index).getTerminator()->getNumOperands();
    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. pilot/pkg/xds/ads.go

    		// can still help provide some client-side Envoy context when load balancing based on location.
    		proxy.Locality = &core.Locality{
    			Region:  proxy.XdsNode.Locality.GetRegion(),
    			Zone:    proxy.XdsNode.Locality.GetZone(),
    			SubZone: proxy.XdsNode.Locality.GetSubZone(),
    		}
    	}
    	// add topology labels to proxy labels
    	proxy.Labels = labelutil.AugmentLabels(
    		proxy.Labels,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 08:29:05 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc

          op_->getAttrs(), op_->getPropertiesStorage(), op_->getSuccessors(),
          op_->getNumRegions());
      builder.insert(new_op);
    
      // Move regions to the new op.
      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);
      }
    
      // Insert stores to all written resources.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 55.1K 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. 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)
  10. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

      }
    }
    
    void WhileRegionOp::getSuccessorRegions(
        RegionBranchPoint point, SmallVectorImpl<RegionSuccessor> &regions) {
      if (!point.isParent() && point == (*this)->getRegion(0)) {
        // 'cond' branches to the body or returns.
        Operation *yield = getCond().front().getTerminator();
        if (yield->getOperands().size() ==
            1 + this->getOperation()->getOperands().size()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
Back to top