Skip to content

Commit 1df32b9

Browse files
authored
Auto-format (#95)
1 parent ae729ea commit 1df32b9

File tree

6 files changed

+25
-15
lines changed

6 files changed

+25
-15
lines changed

include/triton/common/logging.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2626
#pragma once
2727

28+
#include <cerrno>
29+
#include <cstring>
30+
#include <fstream>
2831
#include <mutex>
2932
#include <sstream>
3033
#include <string>
3134
#include <vector>
32-
#include <cerrno>
33-
#include <cstring>
34-
#include <fstream>
3535

3636
namespace triton { namespace common {
3737

include/triton/common/model_config.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
#include <google/protobuf/any.pb.h>
2929
#include <stdint.h>
30+
3031
#include "model_config.pb.h"
3132

3233
namespace triton { namespace common {

include/triton/common/triton_json.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
#include <rapidjson/rapidjson.h>
5050
#include <rapidjson/stringbuffer.h>
5151
#include <rapidjson/writer.h>
52+
5253
#include <string>
5354
#include <vector>
5455

@@ -254,7 +255,7 @@ class TritonJson {
254255
v.SetDouble(value);
255256
return TRITONJSON_STATUSSUCCESS;
256257
}
257-
258+
258259
// Set/overwrite a string in a value. This changes the
259260
// type of the value to string
260261
TRITONJSON_STATUSTYPE SetString(const std::string& value)

protobuf/grpc_service.proto

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ message InferStatistics
943943
//@@ .. cpp:var:: StatisticDuration queue
944944
//@@
945945
//@@ The count and cumulative duration that inference requests wait in
946-
//@@ scheduling or other queues. The "queue" count and cumulative
946+
//@@ scheduling or other queues. The "queue" count and cumulative
947947
//@@ duration includes cache hits.
948948
//@@
949949
StatisticDuration queue = 3;
@@ -985,29 +985,32 @@ message InferStatistics
985985
//@@ and extract output tensor data from the Response Cache on a cache
986986
//@@ hit. For example, this duration should include the time to copy
987987
//@@ output tensor data from the Response Cache to the response object.
988-
//@@ On cache hits, triton does not need to go to the model/backend
988+
//@@ On cache hits, triton does not need to go to the model/backend
989989
//@@ for the output tensor data, so the "compute_input", "compute_infer",
990990
//@@ and "compute_output" fields are not updated. Assuming the response
991991
//@@ cache is enabled for a given model, a cache hit occurs for a
992992
//@@ request to that model when the request metadata (model name,
993993
//@@ model version, model inputs) hashes to an existing entry in the
994994
//@@ cache. On a cache miss, the request hash and response output tensor
995995
//@@ data is added to the cache. See response cache docs for more info:
996-
//@@ https://github.com/triton-inference-server/server/blob/main/docs/response_cache.md
996+
//@@
997+
//https://github.com/triton-inference-server/server/blob/main/docs/response_cache.md
997998
//@@
998999
StatisticDuration cache_hit = 7;
9991000

10001001
//@@ .. cpp:var:: StatisticDuration cache_miss
10011002
//@@
10021003
//@@ The count of response cache misses and cumulative duration to lookup
1003-
//@@ and insert output tensor data from the computed response to the cache.
1004+
//@@ and insert output tensor data from the computed response to the
1005+
//cache.
10041006
//@@ For example, this duration should include the time to copy
10051007
//@@ output tensor data from the response object to the Response Cache.
10061008
//@@ Assuming the response cache is enabled for a given model, a cache
10071009
//@@ miss occurs for a request to that model when the request metadata
10081010
//@@ does NOT hash to an existing entry in the cache. See the response
10091011
//@@ cache docs for more info:
1010-
//@@ https://github.com/triton-inference-server/server/blob/main/docs/response_cache.md
1012+
//@@
1013+
//https://github.com/triton-inference-server/server/blob/main/docs/response_cache.md
10111014
//@@
10121015
StatisticDuration cache_miss = 8;
10131016
}
@@ -1056,7 +1059,7 @@ message InferBatchStatistics
10561059
//@@
10571060
//@@ Memory usage.
10581061
//@@
1059-
message MemoryUsage
1062+
message MemoryUsage
10601063
{
10611064
//@@ .. cpp:var:: string type
10621065
//@@
@@ -1149,7 +1152,7 @@ message ModelStatistics
11491152
repeated InferBatchStatistics batch_stats = 7;
11501153

11511154
//@@ .. cpp:var:: MemoryUsage memory_usage (repeated)
1152-
//@@
1155+
//@@
11531156
//@@ The memory usage detected during model loading, which may be used to
11541157
//@@ estimate the memory to be released once the model is unloaded. Note
11551158
//@@ that the estimation is inferenced by the profiling tools and

src/test/triton_json/triton_json_test.cc

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ TEST(JsonTypeCheck, TestIsObject)
6868
ASSERT_FALSE(x.IsObject());
6969
}
7070

71-
TEST(JsonTypeCheck, TestIsString) {
71+
TEST(JsonTypeCheck, TestIsString)
72+
{
7273
triton::common::TritonJson::Value value;
7374
value.Parse("{\"x\": \"123\"}");
7475

@@ -81,7 +82,8 @@ TEST(JsonTypeCheck, TestIsString) {
8182
ASSERT_FALSE(x.IsString());
8283
}
8384

84-
TEST(JsonTypeCheck, TestIsArray) {
85+
TEST(JsonTypeCheck, TestIsArray)
86+
{
8587
triton::common::TritonJson::Value value;
8688
value.Parse("{\"x\": []}");
8789

@@ -94,7 +96,8 @@ TEST(JsonTypeCheck, TestIsArray) {
9496
ASSERT_FALSE(x.IsArray());
9597
}
9698

97-
TEST(JsonTypeCheck, TestIsNumber) {
99+
TEST(JsonTypeCheck, TestIsNumber)
100+
{
98101
triton::common::TritonJson::Value value;
99102
value.Parse("{\"x\": 2.0}");
100103

@@ -115,7 +118,8 @@ TEST(JsonTypeCheck, TestIsNumber) {
115118
ASSERT_FALSE(x.IsNumber());
116119
}
117120

118-
TEST(JsonTypeCheck, TestIsInt) {
121+
TEST(JsonTypeCheck, TestIsInt)
122+
{
119123
triton::common::TritonJson::Value value;
120124
value.Parse("{\"x\": 2.0}");
121125

src/thread_pool.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2626

2727
#include "triton/common/thread_pool.h"
28+
2829
#include <stdexcept>
2930

3031
namespace triton { namespace common {

0 commit comments

Comments
 (0)