Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions src/tensorflow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1828,11 +1828,8 @@ TRITONSERVER_Error*
ModelState::ValidateModelConfig()
{
// We have the json DOM for the model configuration...
triton::common::TritonJson::WriteBuffer buffer;
RETURN_IF_ERROR(ModelConfig().PrettyWrite(&buffer));
LOG_MESSAGE(
TRITONSERVER_LOG_VERBOSE,
(std::string("model configuration:\n") + buffer.Contents()).c_str());
LOG_JSON_VALUE(
TRITONSERVER_LOG_VERBOSE, "model_configuration", ModelConfig());

triton::common::TritonJson::Value ios;
RETURN_IF_ERROR(ModelConfig().MemberAsArray("input", &ios));
Expand Down Expand Up @@ -2610,13 +2607,14 @@ TRITONBACKEND_Initialize(TRITONBACKEND_Backend* backend)
RETURN_IF_ERROR(
TRITONBACKEND_BackendConfig(backend, &backend_config_message));

LOG_SERVER_MESSAGE(
TRITONSERVER_LOG_INFO, "backend configuration", backend_config_message);

const char* buffer;
size_t byte_size;

RETURN_IF_ERROR(TRITONSERVER_MessageSerializeToJson(
backend_config_message, &buffer, &byte_size));
LOG_MESSAGE(
TRITONSERVER_LOG_INFO,
(std::string("backend configuration:\n") + buffer).c_str());

triton::common::TritonJson::Value backend_config;
if (byte_size != 0) {
Expand Down