Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TF_NewBufferFromString (0.21 sec)

  1. tensorflow/c/eager/parallel_device/parallel_device.cc

      std::string summary;
      Status cpp_status = parallel_tensor->SummarizeValue(summary);
      if (!cpp_status.ok()) {
        tsl::Set_TF_Status_from_Status(status, cpp_status);
        return nullptr;
      }
      return TF_NewBufferFromString(summary.data(), summary.size());
    }
    
    TensorHandlePtr ParallelTensorToTensorHandle(
        const std::string& parallel_device_name, TFE_Context* context,
        std::unique_ptr<ParallelTensor> t, TF_Status* status) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 29 22:05:31 GMT 2023
    - 18.3K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_test.cc

      TF_DeprecatedSession* session = TF_NewDeprecatedSession(opt, s);
      TF_DeleteSessionOptions(opt);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    
      TF_Buffer* run_options = TF_NewBufferFromString("", 0);
      TF_Buffer* run_metadata = TF_NewBuffer();
      TF_Run(session, run_options, nullptr, nullptr, 0, nullptr, nullptr, 0,
             nullptr, 0, run_metadata, 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)
  3. tensorflow/c/c_api.cc

          out_shape_and_type->set_dtype(p.dtype);
          *out_shape_and_type->mutable_type() = p.type;
        }
      }
      string str_data;
      handle_data.SerializeToString(&str_data);
    
      TF_Buffer* result = TF_NewBufferFromString(str_data.c_str(), str_data.size());
      return result;
    }
    
    void TF_SetHandleShapeAndType(TF_Graph* graph, TF_Output output,
                                  const void* proto, size_t proto_len,
    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)
Back to top