Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 121 for variadicOk (0.15 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_executor_ops.td

        executed and dead values are immediately returned for every result.
      }];
    
      let arguments = (ins
        Variadic<TfeControlType>:$controlInputs
      );
    
      let results = (outs
        Variadic<AnyType>:$outputs,
        TfeControlType:$control
      );
    
      let regions = (region SizedRegion<1>:$body);
    
      let extraClassDeclaration = [{
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 23 19:35:12 UTC 2023
    - 22K bytes
    - Viewed (0)
  2. src/internal/types/testdata/examples/functions.go

    var _ float64 = foo(42, []float64{1.0}, &s)
    
    // Type inference works in a straight-forward manner even
    // for variadic functions.
    func variadic[A, B any](A, B, ...B) int { panic(0) }
    
    // var _ = variadic(1) // ERROR "not enough arguments"
    var _ = variadic(1, 2.3)
    var _ = variadic(1, 2.3, 3.4, 4.5)
    var _ = variadic[int, float64](1, 2.3, 3.4, 4)
    
    // Type inference also works in recursive function calls where
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 30 20:19:38 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  3. test/fixedbugs/issue24761.dir/a.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package a
    
    type T2 struct{}
    
    func (t *T2) M2(a, b float64) {
    	variadic(a, b)
    }
    
    func variadic(points ...float64) {
    	println(points)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 11 23:46:30 UTC 2018
    - 294 bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_sync.td

        Note that the trailing number indicates the number of results.
      }];
    
      let arguments = (ins
        Variadic<TFTensorType>,
        StrAttr:$node_def,
        I32Attr:$op_key
      );
    
      let results = (outs Variadic<TFTensorType>);
    
      let assemblyFormat = "`(`operands`)` attr-dict `:` functional-type(operands, results)";
    }
    
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 07 21:12:01 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/ir/host_runtime/tfrt_ops.td

        element of `args` is a key to a loaded array corresponding to a variable.
      }];
    
      let arguments = (ins
        Variadic<TF_Tensor> : $args,
        I64Attr : $program_id,
        I32ArrayAttr : $variable_arg_indices
      );
    
      let results = (outs Variadic<TF_Tensor> : $results);
    
      TF_DerivedOperandTypeListAttr Tin = TF_DerivedOperandTypeListAttr<0>;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 20:44:15 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  6. test/ddd1.go

    func tuple() (int, int, int) { return 1, 2, 3 }
    
    var (
    	_ = sum(tuple())
    	_ = sum(tuple()...) // ERROR "\.{3} with 3-valued|multiple-value"
    	_ = sum3(tuple())
    	_ = sum3(tuple()...) // ERROR "\.{3} in call to non-variadic|multiple-value|invalid use of .*[.][.][.]"
    )
    
    type T []T
    
    func funny(args ...T) int { return 0 }
    
    var (
    	_ = funny(nil)
    	_ = funny(nil, nil)
    	_ = funny([]T{}) // ok because []T{} is a T; passes []T{[]T{}}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 22:28:39 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_op_base.td

    // A derived attribute that returns the element type of `idx`-th ODS-declared
    // operand. If the `idx`-th operand is a variadic operand, then this attribute
    // just returns the element type of its first tensor, which is only meaningful
    // when the variadic operand has at least one tensor and the tensors all have
    // the same element type.
    class TF_DerivedOperandTypeAttr<int idx> : DerivedTypeAttr<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 30.5K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/ops/gen/cpp/cpp_generator_test.cc

          "MatMul",     // 2 inputs & attrs with default values
          "IdentityN",  // Variadic input+output
          "SparseSoftmaxCrossEntropyWithLogits",  // 2 outputs
          "AccumulatorApplyGradient",             // 0 outputs
          "VarHandleOp",                          // type, shape, list(string) attrs
          "RestoreV2",  // Variadic output-only, list(type) attr
      };
    
      cpp::CppConfig cpp_config(category, name_space);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 18 17:02:28 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_avg_pool_patterns.td

    // ops that match the behaviour of tfl.average_pool_2d are directly lowered.
    def LegalizeAvgPool2dComposite: Pat<
                        (MHLO_CompositeOp:$old_val
                        (variadic $a_input), 
                        ConstantStrAttr<StrAttr, "aten.avg_pool2d.default">, $attrs, $_, $_),
                        (TFL_TransposeOp 
                            (TFL_AveragePool2DOp 
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 23:16:05 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  10. test/fixedbugs/gcc61255.go

    // compile
    
    // Copyright 2014 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.
    
    // PR61255: gccgo failed to compile IncDec statements on variadic functions.
    
    package main
    
    func main() {
    	append([]byte{}, 0)[0]++
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 306 bytes
    - Viewed (0)
Back to top