Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 292 for nuts (1.21 sec)

  1. test/typeparam/issue51925.go

    	if x < y {
    		return x
    	}
    	return y
    }
    
    // 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)))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 963 bytes
    - Viewed (0)
  2. test/fixedbugs/issue6750.go

    // Copyright 2016 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.
    
    package main
    
    import "fmt"
    
    func printmany(nums ...int) {
    	for i, n := range nums {
    		fmt.Printf("%d: %d\n", i, n)
    	}
    	fmt.Printf("\n")
    }
    
    func main() {
    	printmany(1, 2, 3)
    	printmany([]int{1, 2, 3}...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 09 23:54:59 UTC 2020
    - 528 bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/math/BigIntegerMath.java

      }
    
      static BigInteger listProduct(List<BigInteger> nums) {
        return listProduct(nums, 0, nums.size());
      }
    
      static BigInteger listProduct(List<BigInteger> nums, int start, int end) {
        switch (end - start) {
          case 0:
            return BigInteger.ONE;
          case 1:
            return nums.get(start);
          case 2:
            return nums.get(start).multiply(nums.get(start + 1));
          case 3:
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  4. internal/config/notify/config.go

    	Kafka         map[string]target.KafkaArgs         `json:"kafka"`
    	MQTT          map[string]target.MQTTArgs          `json:"mqtt"`
    	MySQL         map[string]target.MySQLArgs         `json:"mysql"`
    	NATS          map[string]target.NATSArgs          `json:"nats"`
    	NSQ           map[string]target.NSQArgs           `json:"nsq"`
    	PostgreSQL    map[string]target.PostgreSQLArgs    `json:"postgresql"`
    	Redis         map[string]target.RedisArgs         `json:"redis"`
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 2.8K bytes
    - Viewed (0)
  5. internal/event/target/nats_contrib_test.go

     * limitations under the License.
     */
    
    package target
    
    import (
    	"testing"
    
    	xnet "github.com/minio/pkg/v3/net"
    	natsserver "github.com/nats-io/nats-server/v2/test"
    )
    
    func TestNatsConnPlain(t *testing.T) {
    	opts := natsserver.DefaultTestOptions
    	opts.Port = 14222
    	s := natsserver.RunServer(&opts)
    	defer s.Shutdown()
    
    	clientConfig := &NATSArgs{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/saved_model/public/README.md

    TF_ConcreteFunction* f = TF_GetSavedModelConcreteFunction(saved_model, "f", status);
    TFE_Op* op = TF_ConcreteFunctionMakeCallOp(f, NULL, 0, status);
    
    TFE_TensorHandle* output;
    int nouts = 1;
    TFE_Execute(op, &output, &nouts, status);
    
    TFE_DeleteTensorHandle(output);
    TFE_DeleteOp(op);
    TFE_DeleteSavedModel(saved_model);
    TFE_DeleteContext(ctx);
    TFE_DeleteContextOptions(ctx_options);
    TF_DeleteStatus(status);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 16 23:02:56 UTC 2020
    - 904 bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_async.td

        in_ch and out_ch are for control dependencies.
      }];
    
      let arguments = (ins
        TFRT_ChainType:$in_ch,
        TFTensorType:$arg,
        StrAttr:$device,
        I64Attr:$index
      );
    
      let results = (outs
        TFRT_ChainType:$out_ch
      );
    
      let assemblyFormat = "operands attr-dict";
    }
    
    def GetResourceOp : FallbackAsync_Op<"get_resource",
        [CoreRT_TypedAttributeTrait,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 18 15:01:21 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_sync.td

        arg: the tensor to be set in the resource array.
        index: the index in the resource array
      }];
    
      let arguments = (ins
        TFTensorType:$arg,
        I64Attr:$index
      );
    
      let results = (outs);
    
      let assemblyFormat = "operands attr-dict";
    }
    
    def SetResourceDhtOp : FallbackSync_Op<"set_resource_dht", [CoreRT_TypedAttributeTrait]> {
      let summary = "Set a DHT in resource array";
    
      let description = [{
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 07 21:12:01 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/base/PredicatesTest.java

      public void testIn_compilesWithExplicitSupertype() {
        Collection<Number> nums = ImmutableSet.of();
        Predicate<Number> p1 = Predicates.in(nums);
        Predicate<Object> p2 = Predicates.<Object>in(nums);
        // The next two lines are not expected to compile.
        // Predicate<Integer> p3 = Predicates.in(nums);
        // Predicate<Integer> p4 = Predicates.<Integer>in(nums);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

      );
    
      let results = (outs
        TF_VariantTensor:$handle
      );
    }
    
    def TF_CastOp : TF_Op<"Cast", [Pure, SameOperandsAndResultShape]> {
      let summary = "Cast x of type SrcT to y of DstT.";
    
      let arguments = (ins
        TF_Tensor:$x,
    
        DefaultValuedOptionalAttr<BoolAttr, "false">:$Truncate
      );
    
      let results = (outs
        TF_Tensor:$y
      );
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
Back to top