Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for variadicOk (0.21 sec)

  1. doc/go_spec.html

    </p>
    
    <p>
    The final incoming parameter in a function signature may have
    a type prefixed with <code>...</code>.
    A function with such a parameter is called <i>variadic</i> and
    may be invoked with zero or more arguments for that parameter.
    </p>
    
    <pre>
    func()
    func(x int) int
    func(a, _ int, z float32) bool
    func(a, b int, z float32) (bool)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

            element_types.push_back(getElementTypeOrSelf(value.getType()));
          }
        }
    
        if constexpr (std::is_same<DstOpT, mhlo::CaseOp>::value) {
          // Explicitly handle the Case op because it has variadic regions and takes
          // the number of regions as an input along with the operands.
          mhlo_op = rewriter.create<DstOpT>(loc, op.getResultTypes(),
                                            adaptor.getBranchIndex(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssagen/ssa.go

    	}
    	return s.newValue3(ssa.OpSliceMake, n.Type(), p, l, c)
    }
    
    // minMax converts an OMIN/OMAX builtin call into SSA.
    func (s *state) minMax(n *ir.CallExpr) *ssa.Value {
    	// The OMIN/OMAX builtin is variadic, but its semantics are
    	// equivalent to left-folding a binary min/max operation across the
    	// arguments list.
    	fold := func(op func(x, a *ssa.Value) *ssa.Value) *ssa.Value {
    		x := s.expr(n.Args[0])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
Back to top