Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 59 for variadicOk (0.23 sec)

  1. src/reflect/all_test.go

    		t.Errorf("Variadic Method Type is %s; want %s", tt, tfunc)
    	}
    	i := ValueOf(v.Interface()).Call([]Value{ValueOf(points[0]), ValueOf(points[1]), ValueOf(points[2])})[0].Int()
    	if i != want {
    		t.Errorf("Variadic Method returned %d; want %d", i, want)
    	}
    	i = ValueOf(v.Interface()).CallSlice([]Value{ValueOf(points)})[0].Int()
    	if i != want {
    		t.Errorf("Variadic Method CallSlice returned %d; want %d", i, want)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  2. src/reflect/value.go

    // If v is a variadic function, Call creates the variadic slice parameter
    // itself, copying in the corresponding values.
    func (v Value) Call(in []Value) []Value {
    	v.mustBe(Func)
    	v.mustBeExported()
    	return v.call("Call", in)
    }
    
    // CallSlice calls the variadic function v with the input arguments in,
    // assigning the slice in[len(in)-1] to v's final variadic argument.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  3. src/text/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: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
  4. src/text/template/funcs.go

    		}
    	}
    	argv := make([]reflect.Value, len(args))
    	for i, arg := range args {
    		arg = indirectInterface(arg)
    		// Compute the expected type. Clumsy because of variadics.
    		argType := dddType
    		if !typ.IsVariadic() || i < numIn-1 {
    			argType = typ.In(i)
    		}
    
    		var err error
    		if argv[i], err = prepareArg(arg, argType); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc

          p << " as " << arg << ": " << arg.getType();
        });
        p << ')';
      }
    
      // Skip derived `operandSegmentSizes` attribute as custom print format of
      // operands holds enough information to calculate these variadic operand list
      // lengths.
      p.printOptionalAttrDict(
          getOperation()->getAttrs(),
          /*elidedAttrs=*/ArrayRef<StringRef>{kOperandSegmentSizesAttr});
      p << ' ';
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top