Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 85 for num_elements (0.28 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. tensorflow/c/eager/tape.h

    template <typename Gradient, typename BackwardFunction, typename TapeTensor>
    class VSpace {
     public:
      virtual ~VSpace() {}
    
      // Returns the number of elements in the gradient tensor.
      virtual int64_t NumElements(Gradient* tensor) const = 0;
    
      // Consumes references to the tensors in the gradient_tensors list and returns
      // a tensor with the result.
      virtual Gradient* AggregateGradients(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 02 12:40:29 UTC 2024
    - 47.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/endpoints/discovery/aggregated/handler_test.go

    	codecs = runtimeserializer.NewCodecFactory(scheme)
    }
    
    func fuzzAPIGroups(atLeastNumGroups, maxNumGroups int, seed int64) apidiscoveryv2.APIGroupDiscoveryList {
    	fuzzer := fuzz.NewWithSeed(seed)
    	fuzzer.NumElements(atLeastNumGroups, maxNumGroups)
    	fuzzer.NilChance(0)
    	fuzzer.Funcs(func(o *apidiscoveryv2.APIGroupDiscovery, c fuzz.Continue) {
    		c.FuzzNoCustom(o)
    
    		// The ResourceManager will just not serve the group if its versions
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 00:29:39 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  10. tensorflow/cc/gradients/math_grad_test.cc

        std::vector<Tensor> grad_result;
        TF_EXPECT_OK(
            session.Run({{x, {-3.0f, 0.0f, 3.0f}}}, grad_outputs, &grad_result));
        EXPECT_EQ(grad_result.size(), 1);
        EXPECT_EQ(grad_result[0].NumElements(), 3);
        EXPECT_EQ(grad_result[0].flat<float>()(0), 0.0f);
        EXPECT_EQ(grad_result[0].flat<float>()(1), 0.0f);
        EXPECT_EQ(grad_result[0].flat<float>()(2), 0.0f);
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 36K bytes
    - Viewed (0)
Back to top