Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 251 for funcPC (0.13 sec)

  1. tensorflow/compiler/mlir/lite/experimental/tac/tests/pick-subgraphs.mlir

        %2 = func.call @func_2_CPU_FLOAT(%0, %1) {tac.device = "CPU", tac.inference_type = "FLOAT", tac.interface_name = "func_2"} : (tensor<100xf32>, tensor<100xf32>) -> tensor<2x100xf32>
        func.return %2 : tensor<2x100xf32>
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/experimental/tac/tests/get-alternative-subgraph.mlir

    module {
      func.func @simpleTest(%arg0: tensor<1xf32>, %arg1: tensor<1xf32>, %arg2: tensor<1xf32>, %arg3: tensor<1xf32>) -> tensor<2x1xf32> {
        %0 = func.call @func_0_GPU_FLOAT(%arg0, %arg1, %arg2) {tac.interface_name = "func_0"} : (tensor<1xf32>, tensor<1xf32>, tensor<1xf32>) -> tensor<1xf32>
        %1 = func.call @func_1_GPU_FLOAT(%arg0, %arg3) {tac.interface_name = "func_1"} : (tensor<1xf32>, tensor<1xf32>) -> tensor<1xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/experimental/tac/tests/get-op-cost.mlir

    // -----
    
    func.func @pack_CPU(%arg0: tensor<100xf32>, %arg1: tensor<100xf32>) -> tensor<2x100xf32> attributes {tac.device = "CPU", tac.interface_name = "func_2"} {
      // CHECK: tac.cost = 1.000000e+02
      %0 = "tfl.pack"(%arg0, %arg1) {axis = 0 : i32, tac.device = "CPU", values_count = 2 : i32} : (tensor<100xf32>, tensor<100xf32>) -> tensor<2x100xf32>
      func.return %0 : tensor<2x100xf32>
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 24 05:29:10 UTC 2022
    - 5.7K bytes
    - Viewed (0)
  4. 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)
  5. tensorflow/compiler/mlir/quantization/common/func.h

    #define TENSORFLOW_COMPILER_MLIR_QUANTIZATION_COMMON_FUNC_H_
    
    #include "mlir/Dialect/Func/IR/FuncOps.h"  // from @llvm-project
    #include "mlir/IR/BuiltinOps.h"  // from @llvm-project
    
    namespace mlir::quant {
    
    // Returns a public `func::FuncOp` in `module_op` whose name matches either
    // `main` or `serving_default`. If `func::FuncOps` with both names exist, the
    // function with name "main" takes precedence. Returns null if no such a
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 19 06:55:11 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/experimental/tac/transforms/fold_constants_to_subgraph.cc

                argument_index = i;
                break;
              }
            }
    
            // Copy the const into the consumer func and replace their usages.
            func::FuncOp func = module.lookupSymbol<func::FuncOp>(function_name);
    
            CopyConstantIntoFunc(argument_index, op, func);
          }
        });
      }
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateFoldConstantsToSubgraphPass(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. 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)
  8. test/func8.go

    // Test evaluation order.
    
    package main
    
    var calledf int
    
    func f() int {
    	calledf++
    	return 0
    }
    
    func g() int {
    	return calledf
    }
    
    var xy string
    
    //go:noinline
    func x() bool {
    	xy += "x"
    	return false
    }
    
    //go:noinline
    func y() string {
    	xy += "y"
    	return "abc"
    }
    
    func main() {
    	if f() == g() {
    		panic("wrong f,g order")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 599 bytes
    - Viewed (0)
  9. 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
    // attribute on the CallOp means what it actually looks for.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 28 05:18:47 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. test/func1.go

    // license that can be found in the LICENSE file.
    
    // Test that result parameters are in the same scope as regular parameters.
    // Does not compile.
    
    package main
    
    func f1(a int) (int, float32) {
    	return 7, 7.0
    }
    
    
    func f2(a int) (a int, b float32) { // ERROR "duplicate argument a|definition|redeclared"
    	return 8, 8.0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 04 21:22:23 UTC 2020
    - 445 bytes
    - Viewed (0)
Back to top