Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 654 for afunc (0.74 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td

          return %cluster : tensor<i32>
        }
        ```
    
        will be transformed into:
    
        ```mlir
        func @computation(%arg0: tensor<i32>) -> tensor<i32> {
          %cluster = "tf_device.cluster_func"(%arg0) {func = @_func} : (tensor<i32>) -> tensor<i32>
          return %cluster : tensor<i32>
        }
    
        func @_func(%arg0: tensor<i32>) -> tensor<i32> {
          %identity = "tf.Identity"(%arg0) : (tensor<i32>) -> tensor<i32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 99.6K bytes
    - Viewed (0)
  2. src/runtime/pprof/pprof_test.go

    		// Run multiple times to shake out data races
    		t.Run("goroutine launches", testLaunches)
    	}
    }
    
    func BenchmarkGoroutine(b *testing.B) {
    	withIdle := func(n int, fn func(b *testing.B)) func(b *testing.B) {
    		return func(b *testing.B) {
    			c := make(chan int)
    			var ready, done sync.WaitGroup
    			defer func() {
    				close(c)
    				done.Wait()
    			}()
    
    			for i := 0; i < n; i++ {
    				ready.Add(1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
  3. src/cmd/internal/obj/objfile.go

    	}
    	if s.CFunc() {
    		fmt.Fprintf(ctxt.Bso, "cfunc ")
    	}
    	if s.NoSplit() {
    		fmt.Fprintf(ctxt.Bso, "nosplit ")
    	}
    	if s.Func() != nil && s.Func().FuncFlag&abi.FuncFlagTopFrame != 0 {
    		fmt.Fprintf(ctxt.Bso, "topframe ")
    	}
    	if s.Func() != nil && s.Func().FuncFlag&abi.FuncFlagAsm != 0 {
    		fmt.Fprintf(ctxt.Bso, "asm ")
    	}
    	fmt.Fprintf(ctxt.Bso, "size=%d", s.Size)
    	if s.Type == objabi.STEXT {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24K bytes
    - Viewed (0)
  4. src/cmd/go/go_test.go

    	tg.tempFile("src/t/t2/t2_test.go", "package t\nimport _ \"p1\"\nimport \"testing\"\nfunc Test2(*testing.T) {}\n")
    	tg.tempFile("src/t/t3/t3_test.go", "package t\nimport \"p1\"\nimport \"testing\"\nfunc Test3(t *testing.T) {t.Log(p1.X)}\n")
    	tg.tempFile("src/t/t4/t4_test.go", "package t\nimport \"p2\"\nimport \"testing\"\nfunc Test4(t *testing.T) {t.Log(p2.X)}")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/rangefunc/rewrite.go

    	rfunc := types2.CoreType(rclause.X.GetTypeInfo().Type).(*types2.Signature) // type of X - func(func(...)bool)
    	if rfunc.Params().Len() != 1 {
    		base.Fatalf("invalid typecheck of range func")
    	}
    	ftyp := types2.CoreType(rfunc.Params().At(0).Type()).(*types2.Signature) // func(...) bool
    	if ftyp.Results().Len() != 1 {
    		base.Fatalf("invalid typecheck of range func")
    	}
    
    	// Build X(bodyFunc)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  6. src/cmd/internal/obj/link.go

    func (a *Attribute) DuplicateOK() bool        { return a.load()&AttrDuplicateOK != 0 }
    func (a *Attribute) MakeTypelink() bool       { return a.load()&AttrMakeTypelink != 0 }
    func (a *Attribute) CFunc() bool              { return a.load()&AttrCFunc != 0 }
    func (a *Attribute) NoSplit() bool            { return a.load()&AttrNoSplit != 0 }
    func (a *Attribute) Leaf() bool               { return a.load()&AttrLeaf != 0 }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/utils/convert_attr.cc

      switch (value.value_case()) {
        case AttrValue::kFunc: {
          // TODO(b/156546237): Unify kFunc/NameAttrList attribute representation.
          // Currently kFunc/NameAttrList attributes in a kList/repeated AttrValue
          // will not use this representation.
          mlir::NamedAttrList attrs;
          for (const auto& func_attr : value.func().attr()) {
            TF_ASSIGN_OR_RETURN(auto attr,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. src/reflect/all_test.go

    	},
    	{struct {
    		x struct {
    			f func(args ...int)
    		}
    	}{},
    		"struct { f func(...int) }",
    	},
    	{struct {
    		x (interface {
    			a(func(func(int) int) func(func(int)) int)
    			b()
    		})
    	}{},
    		"interface { reflect_test.a(func(func(int) int) func(func(int)) int); reflect_test.b() }",
    	},
    	{struct {
    		x struct {
    			int32
    			int64
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  9. tensorflow/c/kernels.cc

          break;
    
        case tensorflow::AttrValue::kFunc:
          *list_size = -1;
          *total_size = -1;
          break;
    
        case tensorflow::AttrValue::VALUE_NOT_SET:
          status->status = absl::InvalidArgumentError(
              absl::StrCat("Attribute '", attr_name, "' has no value set"));
          break;
      }
    }
    
    #define DEFINE_TF_GETATTR(func, c_type, cc_type, attr_type, list_field)        \
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 36K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/ppc64/obj9.go

    	} else {
    		return
    	}
    	obj.Nopout(p)
    }
    
    func preprocess(ctxt *obj.Link, cursym *obj.LSym, newprog obj.ProgAlloc) {
    	// TODO(minux): add morestack short-cuts with small fixed frame-size.
    	if cursym.Func().Text == nil || cursym.Func().Text.Link == nil {
    		return
    	}
    
    	c := ctxt9{ctxt: ctxt, cursym: cursym, newprog: newprog}
    
    	p := c.cursym.Func().Text
    	textstksiz := p.To.Offset
    	if textstksiz == -8 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 40.8K bytes
    - Viewed (0)
Back to top