Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for func_0 (0.13 sec)

  1. test/closure3.dir/main.go

    			b := 3
    			return func(y int) int { // ERROR "can inline main.func27.1" "can inline main.main.func27.func34"
    				c := 5
    				return func(z int) int { // ERROR "can inline main.func27.1.1" "can inline main.main.func27.func34.1" "can inline main.func27.main.func27.1.2" "can inline main.main.func27.main.main.func27.func34.func36"
    					return a*x + b*y + c*z
    				}(10) // ERROR "inlining call to main.func27.1.1"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 19:36:29 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/experimental/tac/transforms/fold_constants_to_subgraph.cc

    // This pass is used to fold tfl.const ops to each subgraph (func::FuncOp):
    // See the example below:
    //
    // In main:
    // %0 = tfl.const...
    // %1 = tfl.const...
    // %2 = call func_1(..., %0,...)
    // %3 = call func_2(..., %0, ..., %1...)
    // ...
    //
    // Then those consts will be copied into each function and replace their usage.
    // func_1:
    //   %0 = tfl.const...
    // func_2:
    //   %0 = tfl.const...
    //   %1 = tfl.const...
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/func.cc

    // Returns true iff the function's symbol is public.
    bool IsPublicFuncOp(func::FuncOp func_op) {
      return SymbolTable::getSymbolVisibility(&*func_op) ==
             SymbolTable::Visibility::Public;
    }
    
    }  // namespace
    
    func::FuncOp FindMainFuncOp(ModuleOp module_op) {
      if (const auto main_func_op = module_op.lookupSymbol<func::FuncOp>(
              kImportModelDefaultGraphFuncName);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 19 06:55:11 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/utils/nms_utils.cc

    void ConvertNMSPaddedFunc::RewriteFunc() {
      func_->setAttr(kTFImplements,
                     StringAttr::get(func_.getContext(), kTfNMSPadded));
      Value boxes = func_.getArgument(0);
      Value scores = func_.getArgument(1);
      Value max_output_size = func_.getArgument(2);
      Value iou_threshold = func_.getArgument(3);
      Value score_threshold = func_.getArgument(4);
      auto output_type0 = func_.getFunctionType().getResult(0);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/utils/perception_ops_utils.cc

    LogicalResult ConvertDenseImageWarpFunc::RewriteFunc() {
      func_.eraseBody();
      func_.addEntryBlock();
      func_->setAttr(kTFImplements,
                     StringAttr::get(func_.getContext(), kImageWarping));
    
      OpBuilder builder(func_.getBody());
      auto op = builder.create<CustomOp>(func_.getLoc(),
                                         func_.getFunctionType().getResults(),
                                         func_.getArguments(), kImageWarping,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  6. src/cmd/internal/objabi/funcid.go

    	"deferreturn": abi.FuncIDWrapper,
    }
    
    // Get the function ID for the named function in the named file.
    // The function should be package-qualified.
    func GetFuncID(name string, isWrapper bool) abi.FuncID {
    	if isWrapper {
    		return abi.FuncIDWrapper
    	}
    	if strings.HasPrefix(name, "runtime.") {
    		if id, ok := funcIDs[name[len("runtime."):]]; ok {
    			return id
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 06 21:33:59 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  7. src/internal/trace/testdata/testprog/stacks.go

    	// the rest of the test, they will block.
    	go func() { // func1
    		select {}
    	}()
    	go func() { // func2
    		var c chan int
    		c <- 0
    	}()
    	go func() { // func3
    		var c chan int
    		<-c
    	}()
    	done1 := make(chan bool)
    	go func() { // func4
    		<-done1
    	}()
    	done2 := make(chan bool)
    	go func() { // func5
    		done2 <- true
    	}()
    	c1 := make(chan int)
    	c2 := make(chan int)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/experimental/common/outline_operations.cc

          builder.getFunctionType(input_types, return_types);
    
      std::string function_name = absl::StrCat("func_", subgraph.subgraph_id_);
    
      func::FuncOp new_func = func::FuncOp::create(builder.getUnknownLoc(),
                                                   function_name, function_type);
      new_func.setVisibility(func::FuncOp::Visibility::Private);
      new_func.addEntryBlock();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  9. docs/pt/docs/tutorial/encoder.md

    Por exemplo, se você precisar armazená-lo em um banco de dados.
    
    Para isso, **FastAPI** fornece uma função `jsonable_encoder()`.
    
    ## Usando a função `jsonable_encoder`
    
    Vamos imaginar que você tenha um banco de dados `fake_db` que recebe apenas dados compatíveis com JSON.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/passes/unwrap_xla_call_module_op.cc

                                   TF::kStablehloEntryFunctionAttrName)
                               .getValue();
      func::FuncOp func_op = symbol_table.lookup<func::FuncOp>(function_name);
    
      // We should not unwrap if the function is not from
      // ReplaceStablehloOpsInMainFunctionWithXlaCallModuleOpsPass.
      if (!func_op->hasAttr(TF::kFromXlaCallModuleAttrName)) {
        return;
      }
    
      MLIRContext* context = call_op.getContext();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top