Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 70 for getRegions (0.39 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_device_ops.td

      );
    
      let results = (outs
        Variadic<AnyType>:$results
      );
    
      let regions = (region SizedRegion<1>:$body);
    
      let extraClassDeclaration = [{
        Block &GetBody() { return getOperation()->getRegion(0).front(); }
        bool WrapsSingleOp();
      }];
    
      let builders = [
        OpBuilder<(ins "StringAttr":$device, "TypeRange":$result_types),
        [{
          $_state.addAttribute("device", device);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 23 23:53:20 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_inline_tpu_island.cc

        return WalkResult::advance();
      });
      if (walk_result.wasInterrupted()) return signalPassFailure();
      // Move all remaining nested functions back into the parent module.
      Block &nested_block = nested_module->getRegion(0).front();
      for (func::FuncOp func_op :
           llvm::make_early_inc_range(nested_block.getOps<func::FuncOp>())) {
        if (!symbol_table.lookupSymbolIn(getOperation(), func_op.getName())) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 08:06:04 UTC 2023
    - 4K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/merge_fusion_with_dequantize.cc

        if (!func_op) return failure();
        // The quantized fusion should have requantize and return ops at the end.
        auto return_op = dyn_cast_or_null<func::ReturnOp>(
            func_op.getRegion().getBlocks().front().getTerminator());
        if (!return_op) return failure();
        auto req_op = llvm::dyn_cast_or_null<mlir::stablehlo::UniformQuantizeOp>(
            return_op.getOperands()[0].getDefiningOp());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc

      LogicalResult UnifyReplicationInfo(func::FuncOp func) {
        auto new_repl_info =
            builder.getStringAttr(func.getSymName().str() + "_repl_info");
        for (auto& op : func.getRegion().getOps()) {
          if (auto compile_op = llvm::dyn_cast<TF::TPUCompilationResultOp>(op)) {
            UpdateReplicationAttr(compile_op, new_repl_info);
          } else {
            UpdateReplicationAttr(&op, new_repl_info);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 92.9K bytes
    - Viewed (0)
  7. 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)
  8. tensorflow/compiler/mlir/python/mlir_wrapper/mlir_wrapper.pyi

        def __init__(self, *args, **kwargs) -> None: ...
    
    class Operation:
        def __init__(self, *args, **kwargs) -> None: ...
        def dump(self) -> None: ...
        def getNumResults(self) -> int: ...
        def getRegion(self, arg0: int) -> Region: ...
        def getResult(self, arg0: int) -> OpResult: ...
    
    class OperationState:
        def __init__(self, arg0: Location, arg1: str) -> None: ...
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 09 17:10:09 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  9. platforms/software/resources-s3/src/main/java/org/gradle/internal/resource/transport/aws/s3/S3Client.java

            if (endpoint.isPresent()) {
                amazonS3Client.setEndpoint(endpoint.get().toString());
            } else {
                Optional<Region> region = s3RegionalResource.getRegion();
                if (region.isPresent()) {
                    amazonS3Client.setRegion(region.get());
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc

        if (auto func = dyn_cast<func::FuncOp>(call.resolveCallable())) {
          (*arguments_to_erase)[func].push_back(argument_index);
          work_list->push_back(std::make_pair(&func.getRegion(), argument_index));
        }
      } else if (auto if_op = dyn_cast<TF::IfOp>(user_op)) {
        (*arguments_to_erase)[if_op].push_back(argument_index);
        for (auto callee : {if_op.then_function(), if_op.else_function()}) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 09:56:53 UTC 2024
    - 19.4K bytes
    - Viewed (0)
Back to top