Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 121 for variadicOk (0.33 sec)

  1. src/go/types/builtins.go

    					if check.recordTypes() {
    						sig := makeSig(S, S, y.typ)
    						sig.variadic = true
    						check.recordBuiltinType(call.Fun, sig)
    					}
    					x.mode = value
    					x.typ = S
    					break
    				}
    			}
    		}
    
    		// check general case by creating custom signature
    		sig := makeSig(S, S, NewSlice(T)) // []T required for variadic signature
    		sig.variadic = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/g3doc/tf_dialects.md

    ```mlir {.mlir}
    /// This is a regular function, taking inputs by value and returning a new value.
    /// The body is a regular CFG.
    func some_function(%input : tensor<*xf32>) -> tensor<*xf32> {
      // TensorFlow operations are not variadic: this `tf.add` operation always
      // takes two inputs and returns a single output. This simplifies
      // pattern-matching, verification and rewriting.
      %added = tf.Add %input, %input : tensor<*xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 13 16:33:28 UTC 2021
    - 16K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/subst.go

    				tparams: t.tparams,
    				// instantiated signatures have a nil scope
    				recv:     recv,
    				params:   params,
    				results:  results,
    				variadic: t.variadic,
    			}
    		}
    
    	case *Union:
    		terms, copied := subst.termlist(t.terms)
    		if copied {
    			// term list substitution may introduce duplicate terms (unlikely but possible).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/assignments.go

    // typesSummary returns a string of the form "(t1, t2, ...)" where the
    // ti's are user-friendly string representations for the given types.
    // If variadic is set and the last type is a slice, its string is of
    // the form "...E" where E is the slice's element type.
    func (check *Checker) typesSummary(list []Type, variadic bool) string {
    	var res []string
    	for i, t := range list {
    		var s string
    		switch {
    		case t == nil:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 23 21:21:43 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  5. src/go/types/subst.go

    				tparams: t.tparams,
    				// instantiated signatures have a nil scope
    				recv:     recv,
    				params:   params,
    				results:  results,
    				variadic: t.variadic,
    			}
    		}
    
    	case *Union:
    		terms, copied := subst.termlist(t.terms)
    		if copied {
    			// term list substitution may introduce duplicate terms (unlikely but possible).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  6. test/ddd.go

    // run
    
    // Copyright 2010 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test variadic functions and calls (dot-dot-dot).
    
    package main
    
    func sum(args ...int) int {
    	s := 0
    	for _, v := range args {
    		s += v
    	}
    	return s
    }
    
    func sumC(args ...int) int { return func() int { return sum(args...) }() }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 4.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/predicates.go

    					return false
    				}
    			}
    
    			yparams = check.subst(nopos, y.params, smap, nil, ctxt).(*Tuple)
    			yresults = check.subst(nopos, y.results, smap, nil, ctxt).(*Tuple)
    		}
    
    		return x.variadic == y.variadic &&
    			c.identical(x.params, yparams, p) &&
    			c.identical(x.results, yresults, p)
    
    	case *Union:
    		if y, _ := y.(*Union); y != nil {
    			// TODO(rfindley): can this be reached during type checking? If so,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/tests/passes/quantize/quantize.mlir

       %4 = "quantfork.dcast"(%3) : (tensor<1x2x!quant.uniform<i8:f32, 6.000000e-03:-128>>) -> tensor<1x2xf32>
    // expected-error @+2 {{Failed to find a valid entry function}}
    // expected-error @+1 {{'tf.XlaCallModule' op operand #0 must be variadic of tensor of tf.dtype values}}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 18 01:38:40 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/typecheck/iexport.go

    //             tilde bool
    //             Type  typeOff
    //         }
    //     }
    //
    //
    //
    //     type Signature struct {
    //         Params   []Param
    //         Results  []Param
    //         Variadic bool  // omitted if Results is empty
    //     }
    //
    //     type Param struct {
    //         Pos  Pos
    //         Name stringOff
    //         Type typOff
    //     }
    //
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 21 02:40:02 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  10. src/go/types/predicates.go

    					return false
    				}
    			}
    
    			yparams = check.subst(nopos, y.params, smap, nil, ctxt).(*Tuple)
    			yresults = check.subst(nopos, y.results, smap, nil, ctxt).(*Tuple)
    		}
    
    		return x.variadic == y.variadic &&
    			c.identical(x.params, yparams, p) &&
    			c.identical(x.results, yresults, p)
    
    	case *Union:
    		if y, _ := y.(*Union); y != nil {
    			// TODO(rfindley): can this be reached during type checking? If so,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.6K bytes
    - Viewed (0)
Back to top