Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for setRegion (0.33 sec)

  1. tensorflow/compiler/mlir/lite/experimental/tac/transforms/raise_target_subgraphs.cc

      added_call_op->setAttr(kInterfaceNameAttr, interface_name);
    
      StringAttr device = mlir::cast<StringAttr>(
          added_func_op->getRegion(0).getBlocks().front().front().getAttr(kDevice));
      StringAttr inference_type = mlir::cast<StringAttr>(
          added_func_op->getRegion(0).getBlocks().front().front().getAttr(
              kInferenceType));
      added_call_op->setAttr(kDevice, device);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.h

          if (candidate_op->getNumRegions() != 0) {
            for (const auto& indexed_regions :
                 llvm::enumerate(candidate_op->getRegions())) {
              Region& target_region =
                  quantized_op->getRegion(indexed_regions.index());
              IRMapping mapping;
              indexed_regions.value().cloneInto(&target_region, mapping);
            }
          }
          for (auto output : outputs_replaced) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.cc

          if (!passthrough_arg) break;
          value = call.getArgOperands()[passthrough_arg.value()];
        } else if (isa<tf_device::LaunchOp, tf_device::ClusterOp>(op)) {
          value = op->getRegion(0).front().getTerminator()->getOperand(res_index);
        } else {
          break;
        }
      }
      return value;
    }
    
    // Analyze the region.
    BacktrackAnalysisInfo::BacktrackAnalysisInfo(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc

      }
    
      entry_func_op.setFunctionType(
          rewriter.getFunctionType(arg_types, output_types));
    
      // Replace argument types and locs.
      Block& entry = entry_func_op->getRegion(0).front();
      for (auto [arg, arg_type, arg_loc] :
           llvm::zip_equal(entry.getArguments(), arg_types, arg_locs)) {
        arg.setType(arg_type);
        arg.setLoc(arg_loc);
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 06:04:36 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/utils/tf_xla_mlir_translate.cc

      // have the proper shapes.
      TF_RETURN_IF_ERROR(RefineShapes(arg_shapes, module_op));
    
      mlir::func::FuncOp main = module_op.lookupSymbol<mlir::func::FuncOp>("main");
      mlir::Block& block = main.getRegion().front();
      xla::XlaBuilder builder("main");
    
      // Create xla_params.
      std::vector<xla::XlaOp> xla_params;
      for (mlir::BlockArgument& arg : block.getArguments()) {
        auto num = arg.getArgNumber();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc

                 << ")";
        }
      }
      return success();
    }
    
    void GraphOp::print(OpAsmPrinter &p) {
      p << ' ';
      p.printRegion(getOperation()->getRegion(0));
      p.printOptionalAttrDict(getOperation()->getAttrs());
    }
    
    ParseResult GraphOp::parse(OpAsmParser &parser, OperationState &result) {
      llvm::SMLoc loc = parser.getCurrentLocation();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

        SmallVectorImpl<OpVisitorState>& ops_to_visit,
        const llvm::SmallPtrSetImpl<Block*>& control_flow_blocks, Value token) {
      ops_to_visit.push_back({region_idx + 1, token, region_op});
    
      Region& region = region_op->getRegion(region_idx);
      assert(llvm::hasSingleElement(region));
    
      auto block_token = UpdateControlFlowBlockArgWithToken(builder, region.front(),
                                                            block_arg_types);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
Back to top