Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 100 for num_elements (0.24 sec)

  1. staging/src/k8s.io/apimachinery/pkg/test/api_meta_help_test.go

    		}
    	}
    }
    
    func TestSetExtractListRoundTrip(t *testing.T) {
    	scheme := runtime.NewScheme()
    	codecs := serializer.NewCodecFactory(scheme)
    	fuzzer := fuzz.New().NilChance(0).NumElements(1, 5).Funcs(metafuzzer.Funcs(codecs)...).MaxDepth(10)
    	for i := 0; i < 5; i++ {
    		start := &testapigroup.CarpList{}
    		fuzzer.Fuzz(&start.Items)
    
    		list, err := meta.ExtractList(start)
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  2. src/cmd/link/internal/wasm/asm.go

    func writeTableSec(ctxt *ld.Link, fns []*wasmFunc) {
    	sizeOffset := writeSecHeader(ctxt, sectionTable)
    
    	numElements := uint64(funcValueOffset + len(fns))
    	writeUleb128(ctxt.Out, 1)           // number of tables
    	ctxt.Out.WriteByte(0x70)            // type: anyfunc
    	ctxt.Out.WriteByte(0x00)            // no max
    	writeUleb128(ctxt.Out, numElements) // min
    
    	writeSecSize(ctxt, sizeOffset)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:17:48 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/codec_test.go

    	}
    	return &schema.GroupVersionKind{Group: gv.Group, Version: gv.Version, Kind: findKind.ObjectKind}, nil
    }
    
    // TestObjectFuzzer can randomly populate all the above objects.
    var TestObjectFuzzer = fuzz.New().NilChance(.5).NumElements(1, 100).Funcs(
    	func(j *runtimetesting.MyWeirdCustomEmbeddedVersionKindField, c fuzz.Continue) {
    		c.FuzzNoCustom(j)
    		j.APIVersion = ""
    		j.ObjectKind = ""
    	},
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/test/api_meta_meta_test.go

    }
    
    func getObjectMetaAndOwnerReferences() (myAPIObject2 MyAPIObject2, metaOwnerReferences []metav1.OwnerReference) {
    	scheme := runtime.NewScheme()
    	codecs := serializer.NewCodecFactory(scheme)
    	fuzz.New().NilChance(.5).NumElements(1, 5).Funcs(metafuzzer.Funcs(codecs)...).MaxDepth(10).Fuzz(&myAPIObject2)
    	references := myAPIObject2.ObjectMeta.OwnerReferences
    	// This is necessary for the test to pass because the getter will return a
    	// non-nil slice.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 14 10:11:56 UTC 2022
    - 12.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/collection/CollectionsUtil.java

         *
         * @param <E>
         *            {@link ArrayDeque}の要素型
         * @param numElements
         *            両端キューの初期容量の範囲の下限
         * @return {@link ArrayDeque}の新しいインスタンス
         * @see ArrayDeque#ArrayDeque(int)
         */
        public static <E> ArrayDeque<E> newArrayDeque(final int numElements) {
            return new ArrayDeque<>(numElements);
        }
    
        /**
         * {@link ArrayList}の新しいインスタンスを作成して返します。
         *
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  6. tensorflow/cc/framework/cc_op_gen_util.cc

      strings::StrAppend(&ret, "}");
      return ret;
    }
    
    string PrintTensor(const TensorProto& tensor_proto) {
      Tensor t(tensor_proto.dtype());
      CHECK(t.FromProto(tensor_proto));
      const int64_t num_elts = t.NumElements();
      switch (t.dtype()) {
        case DT_FLOAT:
          return PrintArray(num_elts, t.flat<float>().data());
        case DT_DOUBLE:
          return PrintArray(num_elts, t.flat<double>().data());
        case DT_INT32:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 00:57:05 UTC 2024
    - 25K bytes
    - Viewed (0)
  7. src/syscall/types_windows.go

    }
    
    type CertTrustListInfo struct {
    	// Not implemented
    }
    
    type CertSimpleChain struct {
    	Size                       uint32
    	TrustStatus                CertTrustStatus
    	NumElements                uint32
    	Elements                   **CertChainElement
    	TrustListInfo              *CertTrustListInfo
    	HasRevocationFreshnessTime uint32
    	RevocationFreshnessTime    uint32
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  8. pilot/pkg/model/virtualservice_test.go

    			}
    		})
    	}
    }
    
    // Note: this is to prevent missing merge new added HTTPRoute fields
    func TestFuzzMergeHttpRoute(t *testing.T) {
    	f := fuzz.New().NilChance(0.5).NumElements(0, 1).Funcs(
    		func(r *networking.HTTPRoute, c fuzz.Continue) {
    			c.FuzzNoCustom(r)
    			r.Match = []*networking.HTTPMatchRequest{{}}
    			r.Route = nil
    			r.Redirect = nil
    			r.Delegate = nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 60.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/v2/conversion_test.go

    	depth := 0
    	maxDepth := 3
    	nilChance := func(depth int) float64 {
    		return math.Pow(0.9, math.Max(0.0, float64(maxDepth-depth)))
    	}
    	updateFuzzer := func(depth int) {
    		f.NilChance(nilChance(depth))
    		f.NumElements(0, max(0, maxDepth-depth))
    	}
    	updateFuzzer(depth)
    	enter := func(o interface{}, recursive bool, c fuzz.Continue) {
    		if recursive {
    			depth++
    			updateFuzzer(depth)
    		}
    
    		invisible++
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 14:34:26 UTC 2023
    - 23.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

    input_handle: the input list
    tensor: the gathered result
    num_elements: optional. If not -1, the number of elements in the list.
      }];
    
      let arguments = (ins
        TF_VariantTensor:$input_handle,
        TF_Int32Tensor:$element_shape,
    
        DefaultValuedOptionalAttr<I64Attr, "-1">:$num_elements
      );
    
      let results = (outs
        TF_Tensor:$tensor
      );
    
    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