Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 283 for defs (0.06 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/testinggoroutine/util.go

    		if f != nil && fnDecls == nil {
    			fnDecls = make(map[*types.Func]*ast.FuncDecl)
    			for _, file := range files {
    				for _, decl := range file.Decls {
    					if fnDecl, ok := decl.(*ast.FuncDecl); ok {
    						if fn, ok := info.Defs[fnDecl.Name].(*types.Func); ok {
    							fnDecls[fn] = fnDecl
    						}
    					}
    				}
    			}
    		}
    		// TODO: set f = f.Origin() here.
    		return fnDecls[f]
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. src/go/types/self_test.go

    		conf := Config{
    			IgnoreFuncBodies: ignoreFuncBodies,
    			Importer:         importer.Default(),
    		}
    		var info *Info
    		if writeInfo {
    			info = &Info{
    				Types:      make(map[ast.Expr]TypeAndValue),
    				Defs:       make(map[*ast.Ident]Object),
    				Uses:       make(map[*ast.Ident]Object),
    				Implicits:  make(map[ast.Node]Object),
    				Selections: make(map[*ast.SelectorExpr]*Selection),
    				Scopes:     make(map[ast.Node]*Scope),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 19:39:00 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/force_xla_constants_on_host_pass_test.cc

      bool found = false;
      for (Node* node : graph->nodes()) {
        if (CanCreateXlaKernel(node->def())) {
          EXPECT_FALSE(found);
          found = true;
          std::vector<int32> hostmem_attr;
          EXPECT_TRUE(TryGetNodeAttr(node->def(), "_input_hostmem", &hostmem_attr));
          EXPECT_EQ(hostmem_attr.size(), 1);
          EXPECT_EQ(hostmem_attr[0], 1);
        }
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/self_test.go

    		conf := Config{
    			IgnoreFuncBodies: ignoreFuncBodies,
    			Importer:         defaultImporter(),
    		}
    		var info *Info
    		if writeInfo {
    			info = &Info{
    				Types:      make(map[syntax.Expr]TypeAndValue),
    				Defs:       make(map[*syntax.Name]Object),
    				Uses:       make(map[*syntax.Name]Object),
    				Implicits:  make(map[syntax.Node]Object),
    				Selections: make(map[*syntax.SelectorExpr]*Selection),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 19:39:00 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  5. src/internal/types/errors/generrordocs.go

    	if err != nil {
    		log.Fatalf("ParseFile failed: %s", err)
    	}
    	conf := Config{Importer: importer.Default()}
    	info := &Info{
    		Types: make(map[ast.Expr]TypeAndValue),
    		Defs:  make(map[*ast.Ident]Object),
    		Uses:  make(map[*ast.Ident]Object),
    	}
    	_, err = conf.Check("types", fset, []*ast.File{file}, info)
    	if err != nil {
    		log.Fatalf("Check failed: %s", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 03:14:42 UTC 2023
    - 3K bytes
    - Viewed (0)
  6. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/generator/BazelFileContentGenerator.groovy

    )
    
    load("@rules_jvm_external//:defs.bzl", "maven_install")
    
    maven_install(
        artifacts = [
    
        ],
        repositories = [
            "https://repo.maven.apache.org/maven2/"
        ],
    )
    """
        }
    
        String generateBuildFile(Integer subProjectNumber, DependencyTree dependencyTree) {
            def isRoot = subProjectNumber == null
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/xla_kernel_creator.cc

    #include <vector>
    
    #include "absl/memory/memory.h"
    #include "absl/strings/str_cat.h"
    #include "absl/strings/str_format.h"
    #include "tensorflow/compiler/jit/compilability_check_util.h"
    #include "tensorflow/compiler/jit/defs.h"
    #include "tensorflow/compiler/jit/flags.h"
    #include "tensorflow/compiler/jit/kernels/xla_ops.h"
    #include "tensorflow/compiler/tf2xla/const_analysis.h"
    #include "tensorflow/compiler/tf2xla/mlir_bridge_pass.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 22:24:01 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/xla_cpu_device.cc

    // Registers the XLA_CPU device, which is an XlaDevice instantiation that runs
    // operators using XLA via the XLA "Host" (CPU) backend.
    
    #include <array>
    
    #include "absl/memory/memory.h"
    #include "tensorflow/compiler/jit/defs.h"
    #include "tensorflow/compiler/jit/flags.h"
    #include "tensorflow/compiler/jit/kernels/xla_ops.h"
    #include "tensorflow/compiler/jit/xla_compile_on_demand_op.h"
    #include "tensorflow/compiler/jit/xla_device.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  9. ci/official/requirements_updater/README.md

       parameter of the `python_register_multi_toolchains` function.
    
    3) In the `BUILD.bazel` file, add a load statement for the new version, e.g.
    
       ```
          load("@python//3.11:defs.bzl",
               compile_pip_requirements_3_11 = "compile_pip_requirements")
       ```
    
       Add a new entry for the loaded `compile_pip_requirements`, e.g.
    
       ```
          compile_pip_requirements_3_11(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 23 02:14:00 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/lostcancel/lostcancel.go

    				// If the cancel variable is defined outside function scope,
    				// do not analyze it.
    				if funcScope.Contains(v.Pos()) {
    					cancelvars[v] = stmt
    				}
    			} else if v, ok := pass.TypesInfo.Defs[id].(*types.Var); ok {
    				cancelvars[v] = stmt
    			}
    		}
    		return true
    	})
    
    	if len(cancelvars) == 0 {
    		return // no need to inspect CFG
    	}
    
    	// Obtain the CFG.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top