Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for CheckBufferDataIsEqual (0.28 sec)

  1. tensorflow/c/experimental/saved_model/core/test_utils.h

    // Note: The caller must ensure to check that the dtypes and sizes of the
    // underlying buffers are the same before calling this.
    // dtype must be any integer dtype, float, or double.
    void CheckBufferDataIsEqual(DataType dtype, int64_t num_elements, void* a,
                                void* b);
    
    // Converts a TensorHandle to a Tensor, and dies if unsuccessful. This should
    // only be used for testing purposes.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/saved_model/core/constant_loading_test.cc

      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());
    }
    
    // Test against combinations of tensors that are
    // 1. Varying dtypes
    // 2. Varying shapes
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 4.2K bytes
    - Viewed (0)
  3. 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)
  4. tensorflow/c/experimental/saved_model/core/test_utils.cc

    // 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
    // underlying buffers are the same before calling this.
    void CheckBufferDataIsEqual(DataType dtype, int64_t num_elements, void* a,
                                void* b) {
      switch (dtype) {
    #define CASE(type)                                       \
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Sep 08 20:13:32 UTC 2023
    - 5.8K bytes
    - Viewed (0)
Back to top