Skip to content

Commit a33d9da

Browse files
majnemertensorflow-copybara
authored andcommitted
Use std::numeric_limits for max int32 value.
Replaces tensorflow::kint32max with the standard std::numeric_limits<int32_t>::max(). PiperOrigin-RevId: 834006919
1 parent 4f15b03 commit a33d9da

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tensorflow_serving/model_servers/server.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ limitations under the License.
1717

1818
#include <unistd.h>
1919

20+
#include <cstdint>
2021
#include <iostream>
22+
#include <limits>
2123
#include <memory>
2224
#include <string>
2325
#include <utility>
@@ -392,7 +394,7 @@ absl::Status Server::BuildAndStart(const Options& server_options) {
392394
builder.RegisterService(profiler_service_.get());
393395
LOG(INFO) << "Profiler service is enabled";
394396
}
395-
builder.SetMaxMessageSize(tensorflow::kint32max);
397+
builder.SetMaxMessageSize(std::numeric_limits<int32_t>::max());
396398
const std::vector<GrpcChannelArgument> channel_arguments =
397399
parseGrpcChannelArgs(server_options.grpc_channel_arguments);
398400
for (const GrpcChannelArgument& channel_argument : channel_arguments) {

0 commit comments

Comments
 (0)