Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 95 for variadicOk (0.4 sec)

  1. 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)
  2. tensorflow/compiler/mlir/tfrt/ir/gpu_ops.td

      }];
    
      let arguments = (ins
        Variadic<TFTensorType>:$operands,
        StrAttr:$func_name,
        I64ArrayAttr:$resource_indices,
        I64ArrayAttr:$used_output_indices
      );
      let results = (outs
        Variadic<TFTensorType>:$results
      );
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 18 15:01:21 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_mlrt_tpu_ops.td

      }];
      let arguments = (ins
        Variadic<TFTensorType>:$operands_and_static_shapes,
        DenseI32ArrayAttr:$constant_operand_indices,
        StrAttr:$metadata,
        StrAttr:$mlir_module,
        UI32Attr:$num_operands,
        DenseI32ArrayAttr:$operands_with_static_shape,
        StrAttr:$producer_name
      );
    
      let results = (outs
        TFTensorType:$rendezvous_key_base,
        Variadic<MlrtFutureType>:$results
      );
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 04 21:25:31 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/printf.go

    			if !sig.Variadic() {
    				// Skip checking non-variadic functions.
    				return "", -1
    			}
    			idx := sig.Params().Len() - 2
    			if idx < 0 {
    				// Skip checking variadic functions without
    				// fixed arguments.
    				return "", -1
    			}
    			s, ok := stringConstantArg(pass, call, idx)
    			if !ok {
    				// The last argument before variadic args isn't a string.
    				return "", -1
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  5. src/reflect/makefunc.go

    //
    // The implementation fn can assume that the argument [Value] slice
    // has the number and type of arguments given by typ.
    // If typ describes a variadic function, the final Value is itself
    // a slice representing the variadic arguments, as in the
    // body of a variadic function. The result Value slice returned by fn
    // must have the number and type of results given by typ.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:20:05 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/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
    - 31.5K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top