- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 31 for num_elements (0.14 sec)
-
tensorflow/cc/experimental/base/tests/tensorhandle_test.cc
EXPECT_EQ(tensor.dtype(), dtype); EXPECT_EQ(*reinterpret_cast<typename TypeParam::type*>(tensor.data()), 42); EXPECT_EQ(tensor.num_bytes(), sizeof(typename TypeParam::type)); EXPECT_EQ(tensor.num_elements(), 1); } template <typename T> class Construct1DTensorHandleTest : public ::testing::Test {}; TYPED_TEST_SUITE(Construct1DTensorHandleTest, SimpleTypes);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 13 09:56:08 UTC 2024 - 6.9K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/test_utils.h
int8_t value); // Fills a numeric tensor's buffer with `value`. // dtype must be any integer dtype, float or double. void FillNumericTensorBuffer(DataType dtype, size_t num_elements, void* buffer, int8_t value); // Checks the underlying data is equal for the buffers for two numeric tensors. // Note: The caller must ensure to check that the dtypes and sizes of the
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Aug 11 01:20:50 UTC 2021 - 3.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/low_bit_utils.h
// Returns a vector where each int8 element contains a int4 sign-extended value. std::vector<char> UnpackDenseInt4IntoInt8( const std::vector<uint8_t>& src_buffer, int64_t num_elements); } // namespace tflite
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 12 20:13:51 UTC 2022 - 1.5K bytes - Viewed (0) -
tensorflow/compiler/jit/pjrt_tensor_buffer_util.cc
#include "tensorflow/core/framework/types.h" #include "tsl/platform/statusor.h" namespace tensorflow { static size_t GetTensorSize(const TensorShape& shape, const DataType dtype) { return shape.num_elements() * DataTypeSize(dtype); } absl::StatusOr<Tensor> MakeTensorFromPjRtBuffer( const DataType dtype, const TensorShape& shape, std::unique_ptr<xla::PjRtBuffer> pjrt_buffer) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Sep 14 18:14:47 UTC 2023 - 3.5K bytes - Viewed (0) -
tensorflow/c/eager/immediate_execution_tensor_handle.h
public: // Returns number of dimensions. virtual Status NumDims(int* num_dims) const = 0; // Returns number of elements across all dimensions. virtual Status NumElements(int64_t* num_elements) const = 0; // Returns size of specified dimension // // -1 indicates an unknown axis length; this is unreachable for most standard // ImmediateExecutionTensorHandles, but comes up for example when computing
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 10 21:56:24 UTC 2023 - 4.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/features/CollectionSize.java
*/ ANY(ZERO, ONE, SEVERAL); private final Set<Feature<? super Collection>> implied; private final @Nullable Integer numElements; CollectionSize(int numElements) { this.implied = Collections.emptySet(); this.numElements = numElements; } CollectionSize(Feature<? super Collection>... implied) { // Keep the order here, so that PerCollectionSizeTestSuiteBuilder
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Feb 26 19:46:10 UTC 2024 - 3.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/features/CollectionSize.java
*/ ANY(ZERO, ONE, SEVERAL); private final Set<Feature<? super Collection>> implied; private final @Nullable Integer numElements; CollectionSize(int numElements) { this.implied = Collections.emptySet(); this.numElements = numElements; } CollectionSize(Feature<? super Collection>... implied) { // Keep the order here, so that PerCollectionSizeTestSuiteBuilder
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Feb 26 19:46:10 UTC 2024 - 3.4K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/saved_variable_loading_test.cc
// Check that output_tensor == expected_tensor EXPECT_EQ(output_tensor->Type(), expected_tensor->Type()); EXPECT_EQ(output_tensor->NumElements(), expected_tensor->NumElements()); testing::CheckBufferDataIsEqual( output_tensor->Type(), output_tensor->NumElements(), output_tensor->Data(), expected_tensor->Data()); } // Test against combinations of SavedVariables of // 1. Varying dtypes
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Feb 27 09:34:33 UTC 2024 - 6.2K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/constant_loading_test.cc
EXPECT_EQ(revived_tensor->Type(), expected.dtype()); EXPECT_EQ(revived_tensor->NumElements(), expected.NumElements()); EXPECT_EQ(revived_tensor->NumDims(), expected.dims()); for (int i = 0; i < expected.dims(); ++i) { EXPECT_EQ(revived_tensor->Dim(i), expected.dim_size(i)); } testing::CheckBufferDataIsEqual(expected.dtype(), expected.NumElements(), revived_tensor->Data(), expected.data()); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Aug 11 01:20:50 UTC 2021 - 4.2K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/ops/restore_ops_test.cc
"x/.ATTRIBUTES/VARIABLE_VALUE", DT_FLOAT, &x_handle)); AbstractTensorPtr x = testing::TensorHandleToTensor(x_handle.get()); EXPECT_EQ(x->Type(), DT_FLOAT); EXPECT_EQ(x->NumElements(), 1); EXPECT_EQ(x->NumDims(), 0); EXPECT_FLOAT_EQ(*reinterpret_cast<float*>(x->Data()), 1.0f); ImmediateTensorHandlePtr y_handle; TF_EXPECT_OK(internal::SingleRestore(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 14 19:16:58 UTC 2023 - 4.2K bytes - Viewed (0)