Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for DT_STRING (0.19 sec)

  1. tensorflow/cc/framework/cc_ops_test.cc

      EXPECT_FALSE(root.status().ok());
    }
    
    TEST(CCOpTest, InvalidFinalize) {
      Scope root = Scope::NewRootScope();
      auto read_up_to =
          ops::ReaderReadUpTo(root, Variable(root, {}, DT_STRING),
                              Variable(root, {}, DT_STRING), static_cast<int32>(2));
      EXPECT_FALSE(root.status().ok());
      auto err_msg = std::string(root.status().message());
      EXPECT_NE(err_msg.find("'num_records' passed int32 expected int64"),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 15 15:13:38 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/saved_model/core/ops/restore_ops.cc

                                          const std::string& s,
                                          ImmediateTensorHandlePtr* out) {
      int64_t flat_shape[] = {1};
      AbstractTensorPtr tensor(ctx->CreateTensor(DT_STRING, flat_shape));
      if (tensor.get() == nullptr) {
        return errors::Internal(
            "Failed to create vector string tensor for checkpoint restore");
      }
      // Use placement new to construct the string, since we don't have
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  3. tensorflow/cc/framework/ops.cc

      Tensor t(first.tensor.dtype(), shape);
    
      // Collate the constituent Tensors.
      size_t offset = 0;
      for (auto const& e : v) {
        Tensor elem = e.tensor;
        if (first.tensor.dtype() == DT_STRING) {
          for (int i = 0; i < elem.NumElements(); ++i) {
            t.flat<tstring>()(offset + i) = elem.flat<tstring>()(i);
          }
          offset += elem.NumElements();
        } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  4. tensorflow/cc/saved_model/bundle_v2.cc

      TF_RETURN_WITH_CONTEXT_IF_ERROR(
          bundle_reader->Lookup(kObjectGraphProtoKey, &object_graph_tensor),
          "SavedModel checkpoint does not contain object graph.");
      if (object_graph_tensor.dtype() != DT_STRING ||
          object_graph_tensor.dims() != 0 ||
          object_graph_tensor.NumElements() != 1) {
        return absl::Status(
            absl::StatusCode::kFailedPrecondition,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 05 18:28:37 UTC 2023
    - 9.1K bytes
    - Viewed (0)
Back to top