Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for storage (0.14 sec)

  1. tensorflow/c/c_api.cc

      char* p = static_cast<char*>(storage);
      for (int i = 0; i < len; ++i) {
        const string& s = attr->list().s(i);
        values[i] = p;
        lengths[i] = s.size();
        if ((p + s.size()) > (static_cast<char*>(storage) + storage_size)) {
          status->status = InvalidArgument(
              "Not enough storage to hold the requested list of strings");
          return;
        }
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_test.cc

        std::vector<size_t> lens(expected.size());
        std::unique_ptr<char[]> storage(new char[m.total_size]);
        TF_OperationGetAttrStringList(op, tensorflow::kColocationAttrName,
                                      values.data(), lens.data(), expected.size(),
                                      storage.get(), m.total_size, s_);
        EXPECT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    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)
Back to top