Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for ResultOf (0.26 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/convert_tensor_test.cc

      EXPECT_THAT(
          attribute,
          AllOf(Eq(mlir::DenseElementsAttr::get(
                    mlir::RankedTensorType::get({1ULL << 35}, builder.getF32Type()),
                    42.0f)),
                ResultOf(IsSplat, IsTrue())));
    }
    
    TEST(ConvertTensorProtoTest, NonSplatTensor) {
      TensorProto proto = tensor::CreateTensorProto<float>(
          /*values=*/{1.0f, 2.0f, 3.0f, 4.0f}, /*shape=*/{2, 2});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/doc.go

    	type Pass struct {
    		Fset         *token.FileSet
    		Files        []*ast.File
    		OtherFiles   []string
    		IgnoredFiles []string
    		Pkg          *types.Package
    		TypesInfo    *types.Info
    		ResultOf     map[*Analyzer]interface{}
    		Report       func(Diagnostic)
    		...
    	}
    
    The Fset, Files, Pkg, and TypesInfo fields provide the syntax trees,
    type information, and source positions for a single package of Go code.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/copylock/copylock.go

    	Requires:         []*analysis.Analyzer{inspect.Analyzer},
    	RunDespiteErrors: true,
    	Run:              run,
    }
    
    func run(pass *analysis.Pass) (interface{}, error) {
    	inspect := pass.ResultOf[inspect.Analyzer].(*inspector.Inspector)
    
    	nodeFilter := []ast.Node{
    		(*ast.AssignStmt)(nil),
    		(*ast.CallExpr)(nil),
    		(*ast.CompositeLit)(nil),
    		(*ast.FuncDecl)(nil),
    		(*ast.FuncLit)(nil),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/unitchecker/unitchecker.go

    				IgnoredFiles:      cfg.IgnoredFiles,
    				Pkg:               pkg,
    				TypesInfo:         info,
    				TypesSizes:        tc.Sizes,
    				TypeErrors:        nil, // unitchecker doesn't RunDespiteErrors
    				ResultOf:          inputs,
    				Report:            func(d analysis.Diagnostic) { act.diagnostics = append(act.diagnostics, d) },
    				ImportObjectFact:  facts.ImportObjectFact,
    				ExportObjectFact:  facts.ExportObjectFact,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/loopclosure/loopclosure.go

    	Requires: []*analysis.Analyzer{inspect.Analyzer},
    	Run:      run,
    }
    
    func run(pass *analysis.Pass) (interface{}, error) {
    	inspect := pass.ResultOf[inspect.Analyzer].(*inspector.Inspector)
    
    	nodeFilter := []ast.Node{
    		(*ast.File)(nil),
    		(*ast.RangeStmt)(nil),
    		(*ast.ForStmt)(nil),
    	}
    	inspect.Nodes(nodeFilter, func(n ast.Node, push bool) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/printf.go

    		return constant.StringVal(lit), true
    	}
    	return "", false
    }
    
    // checkCall triggers the print-specific checks if the call invokes a print function.
    func checkCall(pass *analysis.Pass) {
    	inspect := pass.ResultOf[inspect.Analyzer].(*inspector.Inspector)
    	nodeFilter := []ast.Node{
    		(*ast.CallExpr)(nil),
    	}
    	inspect.Preorder(nodeFilter, func(n ast.Node) {
    		call := n.(*ast.CallExpr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 32.5K bytes
    - Viewed (0)
Back to top