- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 100 for num_elements (0.16 sec)
-
staging/src/k8s.io/apimachinery/pkg/api/apitesting/fuzzer/fuzzer.go
// FuzzerFor can randomly populate api objects that are destined for version. func FuzzerFor(funcs FuzzerFuncs, src rand.Source, codecs runtimeserializer.CodecFactory) *fuzz.Fuzzer { f := fuzz.New().NilChance(.5).NumElements(0, 1) if src != nil { f.RandSource(src) } f.Funcs(funcs(codecs)...) return f } // MergeFuzzerFuncs will merge the given funcLists, overriding early funcs with later ones if there first
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 01 19:31:12 UTC 2018 - 1.6K bytes - Viewed (0) -
tensorflow/c/kernels/summary_op_benchmark_test.cc
Graph* BM_ScalarSummaryOp(TensorShape shape, std::string tag, float value) { Graph* g = new Graph(OpRegistry::Global()); Tensor tags(DT_STRING, shape); Tensor values(DT_FLOAT, shape); for (int i = 0; i < tags.NumElements(); ++i) { tags.flat<tstring>()(i) = tag; values.flat<float>()(i) = value; } Node* ret; TF_CHECK_OK(NodeBuilder(g->NewName("dummy"), "ScalarSummary") .Input(test::graph::Constant(g, tags))
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Nov 25 00:59:20 UTC 2020 - 2.7K 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) -
tensorflow/c/tensor_interface.h
virtual int NumDims() const = 0; // Returns size of specified dimension virtual int64_t Dim(int dim_index) const = 0; // Returns number of elements across all dimensions. virtual int64_t NumElements() const = 0; // Return size in bytes of the Tensor virtual size_t ByteSize() const = 0; // Returns a pointer to tensor data virtual void* Data() const = 0; // Returns if the tensor is aligned
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 09 23:17:07 UTC 2021 - 2.4K 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/cc/framework/gradients_test.cc
ClientSession session(scope_test_); std::vector<Tensor> grad_result; TF_EXPECT_OK(session.Run({{x, {3.0f}}}, grad_outputs, &grad_result)); EXPECT_EQ(grad_result.size(), 1); EXPECT_EQ(grad_result[0].NumElements(), 1); EXPECT_EQ(grad_result[0].flat<float>()(0), 17502.0f); } TEST_F(GradientsTest, MultiOutputNodeDependentOutputs) { auto x = Placeholder(scope_test_, DT_FLOAT); auto y0 = Square(scope_test_, x);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 15 15:13:38 UTC 2023 - 25K bytes - Viewed (0) -
src/encoding/asn1/asn1.go
if invalidLength(offset, t.length, len(bytes)) { err = SyntaxError{"truncated sequence"} return } offset += t.length numElements++ } ret = reflect.MakeSlice(sliceType, numElements, numElements) params := fieldParameters{} offset := 0 for i := 0; i < numElements; i++ { offset, err = parseField(ret.Index(i), bytes, offset, params) if err != nil { return } } return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 19:04:28 UTC 2023 - 31.8K 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)