Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for bhar (0.14 sec)

  1. tensorflow/c/c_api_function_test.cc

                expect_failure);
      }
    
      // Caller must delete[] the returned value
      static const char** ToArray(const std::vector<string>& strs) {
        const char** ptr = nullptr;
        if (!strs.empty()) {
          ptr = new const char*[strs.size()];
          for (size_t i = 0; i < strs.size(); ++i) {
            ptr[i] = strs[i].c_str();
          }
        }
        return ptr;
      }
    
    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

      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      EXPECT_TF_META("v", -1, TF_ATTR_STRING, 5);
      std::unique_ptr<char[]> value(new char[5]);
    
      TF_OperationGetAttrString(oper, "v", value.get(), 5, s_);
      EXPECT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      EXPECT_EQ("bunny", string(static_cast<const char*>(value.get()), 5));
    }
    
    TEST_F(CApiAttributesTest, StringList) {
    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

      TFE_ContextOptionsSetAsync(opts, static_cast<unsigned char>(async));
      TFE_Context* ctx = TFE_NewContext(opts, status.get());
      TFE_DeleteContextOptions(opts);
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
      TFE_TensorHandle* hcpu = TestMatrixTensorHandle(ctx);
      const char* kErrorDevice = "NoSuchDevice:0";
      TFE_TensorHandle* hdevice =
    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)
  4. 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