Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 80 for variadicOk (0.19 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

    // PackOp
    //===----------------------------------------------------------------------===//
    
    LogicalResult PackOp::verify() {
      PackOp op = *this;
      // TODO(hinsu): Convert variadic length attributes to derived attributes.
      Operation::operand_range values = op.getValues();
    
      if (failed(VerifyTypesCompatibility(values,
                                          /*mask_one_dim=*/false,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/typecheck/func.go

    	lit.SetImplicit(true)
    
    	n := Expr(lit)
    	if n.Type() == nil {
    		base.FatalfAt(pos, "mkdotargslice: typecheck failed")
    	}
    	return n
    }
    
    // FixVariadicCall rewrites calls to variadic functions to use an
    // explicit ... argument if one is not already present.
    func FixVariadicCall(call *ir.CallExpr) {
    	fntype := call.Fun.Type()
    	if !fntype.IsVariadic() || call.IsDDD {
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  3. src/html/template/exec_test.go

    	{"bug14c", `{{$x := (1.0)}}{{$y := ("hello")}}{{$x.anything}}{{$y.true}}`, "", tVal, false},
    	// Didn't call validateType on function results. Issue 10800.
    	{"bug15", "{{valueString returnInt}}", "", tVal, false},
    	// Variadic function corner cases. Issue 10946.
    	{"bug16a", "{{true|printf}}", "", tVal, false},
    	{"bug16b", "{{1|printf}}", "", tVal, false},
    	{"bug16c", "{{1.1|printf}}", "", tVal, false},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.cc

      // any side effect so far, for example, resource values being passed to
      // `tf.While` or `tf.If` ops which are not part of the op definition but
      // appear in a variadic input list.
      add_remaining_effects(filter_resources(op->getOperands()));
      add_remaining_effects(filter_resources(op->getResults()));
    
      if (!found_any_effect) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc

                                      PatternRewriter& rewriter) const override; \
      }
    
    // TODO(antiagainst): Define this pattern in a table-driven manner once variadic
    // operands are properly supported in declarative rewrite rule specification.
    
    DECL_CONVERT_OP(Assert);
    DECL_CONVERT_OP(ConcatV2);
    DECL_CONVERT_OP(BatchMatMul);
    DECL_CONVERT_OP(BatchMatMulV2);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 20:06:54 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  6. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest-printers.h

    // Overloaded PrintTo() for tuples of various arities.  We support
    // tuples of up-to 10 fields.  The following implementation works
    // regardless of whether tr1::tuple is implemented using the
    // non-standard variadic template feature or not.
    
    inline void PrintTo(const ::std::tr1::tuple<>& t, ::std::ostream* os) {
      PrintTupleTo(t, os);
    }
    
    template <typename T1>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

      auto operandSegmentSizes = getOperation()->getAttrOfType<DenseI32ArrayAttr>(
          operand_segment_size_attr);
    
      // `operandSegmentSizes` attribute indicates the sizes of the two
      // variadic operands of `BatchFunctionOp`: `in_tensors` and
      // `captured_tensors`. The numbers have to be updated as arguments are
      // erased.
      const int32_t num_in_original = operandSegmentSizes[0];
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  8. doc/go1.17_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: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  9. src/cmd/cgo/doc.go

    C compilers are aware of this calling convention and adjust
    the call accordingly, but Go cannot. In Go, you must pass
    the pointer to the first element explicitly: C.f(&C.x[0]).
    
    Calling variadic C functions is not supported. It is possible to
    circumvent this by using a C function wrapper. For example:
    
    	package main
    
    	// #include <stdio.h>
    	// #include <stdlib.h>
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 17:12:16 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types/type.go

    func (t *Type) NumRecvs() int   { return len(t.Recvs()) }
    func (t *Type) NumParams() int  { return len(t.Params()) }
    func (t *Type) NumResults() int { return len(t.Results()) }
    
    // IsVariadic reports whether function type t is variadic.
    func (t *Type) IsVariadic() bool {
    	n := t.NumParams()
    	return n > 0 && t.Param(n-1).IsDDD()
    }
    
    // Recv returns the receiver of function type t, if any.
    func (t *Type) Recv() *Field {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
Back to top