Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for Char (1.13 sec)

  1. 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)
  2. 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)
  3. tensorflow/c/experimental/filesystem/filesystem_interface.h

      TF_Filesystem_Option_Type_Buffer,
      TF_Filesystem_Num_Option_Types,  // must always be the last item
    } TF_Filesystem_Option_Type;
    
    typedef struct TF_Filesystem_Option {
      char* name;                         // null terminated, owned
      char* description;                  // null terminated, owned
      int per_file;                       // bool actually, but bool is not a C type
      TF_Filesystem_Option_Value* value;  // owned
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 17:36:54 GMT 2022
    - 53.1K bytes
    - Viewed (0)
  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)
  5. 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)
  6. tensorflow/c/c_api.h

                                              const char* attr_name,
                                              unsigned char value);
    TF_CAPI_EXPORT extern void TF_SetAttrBoolList(TF_OperationDescription* desc,
                                                  const char* attr_name,
                                                  const unsigned char* values,
                                                  int num_values);
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Oct 26 21:08:15 GMT 2023
    - 82.3K bytes
    - Viewed (3)
Back to top