Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 76 for func_10 (0.16 sec)

  1. test/closure3.dir/main.go

    			return func(x int) int { // ERROR "can inline main.func12"
    				return x + 1
    			}, 42
    		}() // ERROR "func literal does not escape" "inlining call to main.func12"
    		if y(40) != 41 {
    			ppanic("y(40) != 41")
    		}
    	}
    
    	{
    		func() { // ERROR "func literal does not escape"
    			y := func(x int) int { // ERROR "func literal does not escape" "can inline main.func13.1"
    				return x + 2
    			}
    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/tests/get-op-cost.mlir

    func.func @func_0_CPU(%arg0: tensor<256x32x32x3xf32>, %arg1: tensor<256x32x32x3xf32>) -> tensor<256x32x32x3xf32> attributes {tac.device = "CPU", tac.interface_name = "func_0"} {
      // CHECK: tac.cost = 7.864320e+05
      %0 = "tfl.add"(%arg0, %arg1) {fused_activation_function = "RELU", tac.device = "CPU"} : (tensor<256x32x32x3xf32>, tensor<256x32x32x3xf32>) -> tensor<256x32x32x3xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 24 05:29:10 UTC 2022
    - 5.7K bytes
    - Viewed (0)
  3. src/internal/trace/testdata/testprog/stacks.go

    	}
    	go func() { // func10
    		c, err := ln.Accept()
    		if err != nil {
    			log.Printf("failed to accept: %v", err)
    			return
    		}
    		c.Close()
    	}()
    	rp, wp, err := os.Pipe()
    	if err != nil {
    		log.Fatalf("failed to create a pipe: %v", err)
    	}
    	defer rp.Close()
    	defer wp.Close()
    	pipeReadDone := make(chan bool)
    	go func() { // func11
    		var data [1]byte
    		rp.Read(data[:])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/experimental/tac/transforms/fold_constants_to_subgraph.cc

    // 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...
    class FoldConstantsToSubgraphPass
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. test/func1.go

    Robert Griesemer <******@****.***> 1607048150 -0800
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 04 21:22:23 UTC 2020
    - 445 bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/experimental/tac/tests/compute-cost.mlir

    // CHECK: tac.cost = 7.864320e+05
    func.func @func_0_CPU(%arg0: tensor<256x32x32x3xf32>, %arg1: tensor<256x32x32x3xf32>) -> tensor<256x32x32x3xf32> attributes {tac.device = "CPU", tac.interface_name = "func_0"} {
      %0 = "tfl.add"(%arg0, %arg1) {fused_activation_function = "RELU", tac.device = "CPU"} : (tensor<256x32x32x3xf32>, tensor<256x32x32x3xf32>) -> tensor<256x32x32x3xf32>
      func.return %0 : tensor<256x32x32x3xf32>
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 24 05:29:10 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/experimental/tac/common/subgraph.h

    // Take the following example:
    //
    // call @func_1_CPU {tac.interface_name = "func_1"}
    //
    // "func_1" is the interface name where "func_1_cpu" is the real implementation
    // we can have multiple FuncOps like "func_1_cpu" and "func_1_gpu" and they
    // both implement "func_1".
    //
    // The attribute on the FuncOp means what it actually implements while the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 28 05:18:47 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_duplicate_resource_ops.cc

    // exist.
    // TODO(b/284222084): Move executor dialect utilities to a new library.
    GraphOp GetGraphOpFromFuncOp(func::FuncOp func_op) {
      if (func_op->getNumRegions() == 0 || func_op.getBody().empty()) return {};
    
      auto graph_op_range = func_op.front().without_terminator();
      if (llvm::hasSingleElement(graph_op_range)) {
        // The pass runs on a valid tf_executor dialect, so the op should be the
        // GraphOp.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 26 04:26:16 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfrt/analysis/tensor_array_side_effect_analysis.cc

    static bool FunctionContainsOnlyNoSideEffectOpOrTensorArrayOp(
        mlir::func::FuncOp func_op) {
      for (mlir::Operation& op : func_op.front()) {
        if (!mlir::isMemoryEffectFree(&op) && !IsTensorArrayOp(&op)) return false;
      }
    
      return true;
    }
    
    TensorArraySideEffectAnalysis::TensorArraySideEffectAnalysis(
        mlir::ModuleOp module) {
      for (auto func_op : module.getOps<mlir::func::FuncOp>()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Nov 16 01:49:07 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/passes/merge_fusion_with_dequantize.cc

        SymbolTable symbol_table(call_op->getParentOfType<ModuleOp>());
        auto func_op =
            dyn_cast_or_null<func::FuncOp>(symbol_table.lookup(func_name));
        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();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top