Skip to content

Commit b290196

Browse files
jamied157Tabrizian
authored andcommitted
clang format
1 parent d1035dc commit b290196

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/libtorch.cc

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,6 @@ class ModelState : public BackendModel {
109109
{
110110
return model_outputs_;
111111
}
112-
const std::map<std::string, std::pair<int64_t, int64_t>>& ModelOutputs()
113-
{
114-
return model_outputs_;
115-
}
116112

117113
private:
118114
ModelState(TRITONBACKEND_Model* triton_model);
@@ -1772,7 +1768,7 @@ ModelInstanceState::GetNamingConvention(
17721768
("PyTorch model '" + model_state_->Name() +
17731769
"' is using sequence batching with state but state '" +
17741770
state_name +
1775-
"' does not follow the <name>__<index> naming convention. ")
1771+
"' does not follow the <name>__<index> naming convention. ")
17761772
.c_str());
17771773
} else {
17781774
// check if the index part of the name is not an integer
@@ -2320,10 +2316,10 @@ ModelInstanceState::ReadOutputTensors(
23202316
responder.ProcessTensor(
23212317
name, output_dtype, batchn_shape, output_buffer, memory_type,
23222318
memory_id);
2323-
}
2324-
if (output_tensor_pair.second != -1) {
2325-
std::vector<TRITONBACKEND_State*> states;
2326-
states = responder.ProcessStateTensor(
2319+
}
2320+
if (output_tensor_pair.second != -1) {
2321+
std::vector<TRITONBACKEND_State*> states;
2322+
states = responder.ProcessStateTensor(
23272323
name, output_dtype, batchn_shape, output_buffer, memory_type,
23282324
memory_id);
23292325
// Update the states

0 commit comments

Comments
 (0)