Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for reinterpret_cast (0.15 sec)

  1. tensorflow/c/c_api_test.cc

      TF_DeleteStatus(s);
    }
    
    void Deallocator(void* data, size_t, void* arg) {
      tensorflow::cpu_allocator()->DeallocateRaw(data);
      *reinterpret_cast<bool*>(arg) = true;
    }
    
    TEST(CAPI, Tensor) {
      const int num_bytes = 6 * sizeof(float);
      float* values =
          reinterpret_cast<float*>(tensorflow::cpu_allocator()->AllocateRaw(
              TF_TensorDefaultAlignment(), num_bytes));
      int64_t dims[] = {2, 3};
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  2. tensorflow/c/eager/c_api_test.cc

      TF_Buffer* b = TF_NewBuffer();
      TFE_ContextExportRunMetadata(ctx, b, status);
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      tensorflow::RunMetadata rm;
      EXPECT_TRUE(
          rm.ParseFromString({reinterpret_cast<const char*>(b->data), b->length}));
      TF_DeleteBuffer(b);
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      ASSERT_EQ(1, num_retvals);
    
      TF_Tensor* t = TFE_TensorHandleResolve(retvals[0], status);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  3. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

      if (!status.ok())
        GTEST_SKIP() << "NewReadOnlyMemoryRegionFromFile() not supported: "
                     << status;
      EXPECT_EQ(region->length(), test_data.size());
      EXPECT_STREQ(reinterpret_cast<const char*>(region->data()),
                   test_data.c_str());
    }
    
    TEST_P(ModularFileSystemTest, TestCreateMemoryRegionFromFilePathIsInvalid) {
      const std::string filepath = GetURIForPath("a_file");
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
Back to top