Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. tensorflow/c/c_api_function_test.cc

    //      output tensor naming, but it the index is actually an input index)
    struct EdgeSpec : public std::pair<string, string> {
      typedef std::pair<string, string> Base;
    
      // Inherit the set of constructors
      using Base::pair;
    
      string ToString() const { return strings::StrCat(first, "->", second); }
    };
    
    class CApiFunctionTest : public ::testing::Test {
     protected:
      CApiFunctionTest()
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
  2. tensorflow/c/c_api_test.cc

      EXPECT_EQ(TF_STRING, TF_TensorType(t_out));
      EXPECT_EQ(0, TF_NumDims(t_out));
      ASSERT_EQ(TF_TensorByteSize(t_in.get()), TF_TensorByteSize(t_out));
      TF_TString* t_in_tstr = static_cast<TF_TString*>(TF_TensorData(t_in.get()));
      TF_TString* t_out_tstr = static_cast<TF_TString*>(TF_TensorData(t_out));
      EXPECT_EQ(absl::string_view(test_string),
                absl::string_view(TF_TString_GetDataPointer(t_out_tstr),
    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)
  3. tensorflow/c/eager/c_api_test.cc

        const char* dev = TF_DeviceListName(devices, i, status.get());
        ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
        string device_name(dev);
        if (device_name.find("GPU:0") != string::npos) {
          has_gpu0 = true;
        }
        if (device_name.find("GPU:1") != string::npos) {
          has_gpu1 = true;
        }
      }
    
      const char* kCPUDevice = "CPU:0";
      if (!has_gpu0 || !has_gpu1) {
    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)
Back to top