- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 121 for variadicOk (0.3 sec)
-
test/typeparam/issue51925.go
} // Min returns the minimum element of `nums`. func Min[T IntLike, NumSlice ~[]T](nums NumSlice) T { if len(nums) == 0 { return T(0) } return Reduce(min[T], nums, nums[0]) } // VarMin is the variadic version of Min. func VarMin[T IntLike](nums ...T) T { return Min(nums) } type myInt int func main() { fmt.Println(VarMin(myInt(1), myInt(2))) seq := []myInt{1, 2} fmt.Println(Min(seq))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 963 bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/remove_sharding_custom_call.td
>; // Removes `stablehlo.custom_call @Sharding`. Assumes this call always accepts // one input. Other attributes are ignored. def RemoveShardingCustomCall : Pat< (StableHLO_CustomCallOp (variadic $input0), $call_target_name, $_, $_, $_, $_, $_, $_, $_), (replaceWithValue $input0),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 13 07:04:47 UTC 2024 - 1.2K bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue59956.go
func h3[P any](func(P), func(P), func() P) {} func h4[P, Q any](func(P), func(P, Q), func() Q, func(P, Q)) {} func r1() int { return 0 } func _() { h3(g1, g1, r1) h4(g1, g2, r1, g2) } // Variadic cases func f(func(int)) func g[P any](P) {} func d[P any](...func(P)) {} func _() { d /* ERROR "cannot infer P" */ () d(f) d(f, g) d(f, g, g) d /* ERROR "cannot infer P" */ (g, g, g)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 04 17:35:44 UTC 2023 - 873 bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tpu_model_to_cpu.td
include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td" include "mlir/IR/OpBase.td" include "mlir/IR/PatternBase.td" include "tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.td" // Combines the two variadic arguments ($in_tensors and $captured_tensors). def GetBatchFunctionOpArgOperands: NativeCodeCall<"cast<TF::BatchFunctionOp>($0[0].getDefiningOp()).getArgOperands()">;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 02 18:58:35 UTC 2024 - 1.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/runtime_fallback/runtime_fallback_ops.td
} : (!tfrt.chain, !tfd.tf_tensor, !tfd.tf_tensor) -> ( !tfrt.chain, !tfd.tf_tensor) }]; let arguments = (ins TFRT_ChainType, Variadic<AnyType>); let results = (outs TFRT_ChainType, Variadic<AnyType>); } def PrintTftOp : RuntimeFallbackDialect_Op<"print_tft"> { let summary = "print TF tensor operation"; let description = [{
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 23 19:35:12 UTC 2023 - 5.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/ir/QuantOps.td
quantized kernel. }]; let arguments = (ins Variadic<AnyType>:$inputs, TypeArrayAttr:$input_specs, TypeArrayAttr:$output_specs, StrAttr:$logical_kernel); let results = (outs Variadic<AnyType>:$outputs); let regions = (region SizedRegion<1>:$body); let hasVerifier = 1; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Oct 13 12:46:08 UTC 2022 - 10.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/ir/QuantOps.td
quantized kernel. }]; let arguments = (ins Variadic<AnyType>:$inputs, TypeArrayAttr:$input_specs, TypeArrayAttr:$output_specs, StrAttr:$logical_kernel); let results = (outs Variadic<AnyType>:$outputs); let regions = (region SizedRegion<1>:$body); let hasVerifier = 1; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jan 09 03:10:59 UTC 2024 - 10.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/ir/tfr_ops.td
the `call` operation can only be with tfr.tensor and tfr.tensor_list types. }]; let arguments = (ins FlatSymbolRefAttr:$callee, Variadic<TFR_allowedArgType>:$args); let results = (outs Variadic<TFR_allowedResultType>:$outs); let extraClassDeclaration = [{ // Get the argument operands to the called function. operand_range getArgOperands() { return getArgs(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 10:54:29 UTC 2024 - 17.4K bytes - Viewed (0) -
src/go/types/call.go
// --------------+------------------+----------------+ // variadic func | nargs >= npars-1 | nargs == npars | // --------------+------------------+----------------+ nargs := len(args) npars := sig.params.Len() ddd := hasDots(call) // set up parameters sigParams := sig.params // adjusted for variadic functions (may be nil for empty parameter lists!)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 33.5K bytes - Viewed (0) -
src/cmd/vet/testdata/print/print.go
type someStruct struct{} // Log is non-variadic user-define Println-like function. // Calls to this func must be skipped when checking // for Println-like arguments. func (ss *someStruct) Log(f func(), s string) {} // Error is variadic user-define Println-like function. // Calls to this func mustn't be checked for Println-like arguments, // since variadic arguments type isn't interface{}.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 27.5K bytes - Viewed (0)