- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 30 for num_elements (0.24 sec)
-
staging/src/k8s.io/apimachinery/pkg/api/meta/meta_test.go
metav1beta1 "k8s.io/apimachinery/pkg/apis/meta/v1beta1" "github.com/google/go-cmp/cmp" fuzz "github.com/google/gofuzz" ) func TestAsPartialObjectMetadata(t *testing.T) { f := fuzz.New().NilChance(.5).NumElements(0, 1).RandSource(rand.NewSource(1)) for i := 0; i < 100; i++ { m := &metav1.ObjectMeta{} f.Fuzz(m) partial := AsPartialObjectMetadata(m) if !reflect.DeepEqual(&partial.ObjectMeta, m) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:48:03 UTC 2023 - 1.5K bytes - Viewed (0) -
tensorflow/compiler/jit/pjrt_tensor_buffer_util_test.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Sep 14 18:14:47 UTC 2023 - 2.7K bytes - Viewed (0) -
pkg/registry/rbac/helpers_test.go
if tc.expected != actual { t.Errorf("%s: expected %v, got %v", tc.name, tc.expected, actual) } } } func TestNewMetadataFields(t *testing.T) { f := fuzz.New().NilChance(0.0).NumElements(1, 1) for i := 0; i < 100; i++ { objMeta := metav1.ObjectMeta{} f.Fuzz(&objMeta) objMeta.Name = "" objMeta.GenerateName = "" objMeta.Namespace = "" objMeta.SelfLink = ""
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 05 20:12:50 UTC 2022 - 4.7K bytes - Viewed (0) -
src/crypto/x509/root_windows.go
} simpleChains := unsafe.Slice(simpleChain, count) lastChain := simpleChains[count-1] elements := unsafe.Slice(lastChain.Elements, lastChain.NumElements) for i := 0; i < int(lastChain.NumElements); i++ { // Copy the buf, since ParseCertificate does not create its own copy. cert := elements[i].CertContext encodedCert := unsafe.Slice(cert.EncodedCert, cert.Length)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 19:41:40 UTC 2023 - 8.7K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_tensor.cc
#include "tensorflow/compiler/tf2xla/shape_util.h" #include "xla/shape_util.h" namespace tensorflow { /*static*/ XlaTensor* XlaTensor::FromTensor(const Tensor* tensor) { if (tensor->NumElements() == 0) { return nullptr; } XlaTensor* xla_tensor = FromOpaquePointer(const_cast<char*>(tensor->tensor_data().data())); return xla_tensor; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 08:47:20 UTC 2024 - 4.5K bytes - Viewed (0) -
tensorflow/c/tf_tensor_internal.h
~TensorInterface() override {} void Release() override; DataType Type() const override; int NumDims() const override; int64_t Dim(int dim_index) const override; int64_t NumElements() const override; size_t ByteSize() const override; void* Data() const override; bool IsAligned() const override; bool CanMove() const override; std::string SummarizeValue() const override;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Aug 24 20:38:55 UTC 2023 - 4.6K bytes - Viewed (0) -
tensorflow/compiler/jit/variable_info_util.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 08:47:20 UTC 2024 - 7K bytes - Viewed (0) -
tensorflow/cc/saved_model/bundle_v2.cc
"SavedModel checkpoint does not contain object graph."); if (object_graph_tensor.dtype() != DT_STRING || object_graph_tensor.dims() != 0 || object_graph_tensor.NumElements() != 1) { return absl::Status( absl::StatusCode::kFailedPrecondition, "SavedModel checkpoint object graph was not the correct type."); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 05 18:28:37 UTC 2023 - 9.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/helpers_test.go
} } } func TestResetObjectMetaForStatus(t *testing.T) { meta := &ObjectMeta{} existingMeta := &ObjectMeta{} // fuzz the existingMeta to set every field, no nils f := fuzz.New().NilChance(0).NumElements(1, 1).MaxDepth(10) f.Fuzz(existingMeta) ResetObjectMetaForStatus(meta, existingMeta) // not all fields are stomped during the reset. These fields should not have been set. False
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 7.1K bytes - Viewed (0) -
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)