Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for FunctionName (0.34 sec)

  1. testing/performance/src/templates/cpp-source/lib.cpp

    #include "${functionName}.h"
    
    // Include functions from dependencies
    <% projectDeps.each { p ->
      sourceFiles.times { %>
    #include "${p}lib${it + 1}.h"
    <%
      }
    } %>
    
    <% functionCount.times { %>
    long CPP_${functionName}_${it + 1} () {
      long sum = 1;
      // Call functions defined in dependent projects.
      <% projectDeps.each { p ->
        sourceFiles.times {
          def functionName = "${p}lib${it + 1}"
          functionCount.times {
      %>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 521 bytes
    - Viewed (0)
  2. testing/performance/src/templates/cpp-source/lib.h

    #ifndef PROJECT_HEADER_${functionName}_H
    #define PROJECT_HEADER_${functionName}_H
    <% functionCount.times { %>
    long CPP_${functionName}_${it + 1} ();
    <% } %>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 200 bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_import.cc

      return function_aliases;
    }
    
    void UpdateFunctionAliases(
        absl::flat_hash_map<FunctionName, FunctionAlias>& function_aliases,
        ModuleOp module_op) {
      absl::flat_hash_set<FunctionName> existing_func_names;
      module_op->walk([&](func::FuncOp func_op) {
        FunctionName func_name = func_op.getSymName().str();
        existing_func_names.insert(func_name);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  4. testing/performance/src/templates/cpp-source/exe.cpp

    #define STDIO <stdio.h>
    #include STDIO
    <% }%>
    
    int main () {
      long sum = 1;
      <% sourceFiles.times {
        def functionName = "lib${it + 1}"
        if (projectName != 'root') {
          functionName = "${projectName}${functionName}"
        }
        functionCount.times {
      %>
      sum += CPP_${functionName}_${it + 1}();
      <%
        }
      } %>
      printf("You made %d function calls!", sum);
      return 0;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 584 bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_import_test.cc

          return %arg : tensor<1x2xf32>
        }
      )mlir");
      ASSERT_TRUE(module_op);
    
      absl::flat_hash_map<FunctionName, FunctionAlias> function_aliases;
      UpdateFunctionAliases(function_aliases, *module_op);
      EXPECT_THAT(function_aliases, IsEmpty());
    }
    
    TEST_F(UpdateFunctionAliasesTest, AliasUpdatedByMlirFunctionName) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 07 03:47:17 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. build-logic/performance-testing/src/main/groovy/gradlebuild/performance/generator/tasks/CppMultiProjectGeneratorTask.groovy

                Map classArgs = projectArgs + [functionName: fName]
                def headersDir = classArgs.projectType == 'exe' ? 'headers' : 'public'
                generateWithTemplate(projectDir, "src/main/cpp/${classArgs.functionName}.cpp", 'lib.cpp', classArgs)
                generateWithTemplate(projectDir, "src/main/${headersDir}/${classArgs.functionName}.h", 'lib.h', classArgs)
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jul 07 13:12:26 UTC 2021
    - 4.8K bytes
    - Viewed (0)
  7. build-logic/performance-testing/src/main/groovy/gradlebuild/performance/generator/tasks/NativeProjectGeneratorTask.groovy

            }
            testProject.sourceFiles.times { s ->
                args.moduleCount.times { m ->
                    Map classArgs = args + [componentName: "lib${m + 1}", functionName: "lib${s + 1}"]
                    generateWithTemplate(projectDir, "src/${classArgs.componentName}/c/${classArgs.functionName}.c", 'lib.c', classArgs)
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jul 07 13:12:26 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_import.h

        const std::vector<std::string>& signature_keys,
        MLIRContext& ctx ABSL_ATTRIBUTE_LIFETIME_BOUND);
    
    // Gets the function aliases from the SavedModel.
    absl::StatusOr<absl::flat_hash_map<FunctionName, FunctionAlias>>
    GetFunctionAliases(absl::string_view saved_model_path,
                       const std::unordered_set<std::string>& tags);
    
    // Updates the function aliases. `module_op` may have different
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  9. src/cmd/vendor/github.com/google/pprof/internal/driver/tagroot.go

    	type locKey struct {
    		functionName, fileName string
    	}
    	locs := map[locKey]*profile.Location{}
    
    	internLoc := func(locKey locKey) *profile.Location {
    		loc, found := locs[locKey]
    		if found {
    			return loc
    		}
    
    		function := &profile.Function{
    			ID:       nextFuncID,
    			Name:     locKey.functionName,
    			Filename: locKey.fileName,
    		}
    		nextFuncID++
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 18:58:12 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  10. src/go/printer/example_test.go

    	"go/parser"
    	"go/printer"
    	"go/token"
    	"strings"
    )
    
    func parseFunc(filename, functionname string) (fun *ast.FuncDecl, fset *token.FileSet) {
    	fset = token.NewFileSet()
    	if file, err := parser.ParseFile(fset, filename, nil, 0); err == nil {
    		for _, d := range file.Decls {
    			if f, ok := d.(*ast.FuncDecl); ok && f.Name.Name == functionname {
    				fun = f
    				return
    			}
    		}
    	}
    	panic("function not found")
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 14:55:02 UTC 2022
    - 1.7K bytes
    - Viewed (0)
Back to top