NAME
AI::PredictionClient::Alien::TensorFlowServingProtos - Builds C++ client library for TensorFlow Serving.
SYNOPSIS
In your Build.PL:
use Module::Build;
use AI::PredictionClient::Alien::TensorFlowServingProtos;
my $builder = Module::Build->new(
...
configure_requires => {
'AI::PredictionClient::Alien::TensorFlowServingProtos' => '0',
...
},
extra_compiler_flags => AI::PredictionClient::Alien::TensorFlowServingProtos->cflags,
extra_linker_flags => AI::PredictionClient::Alien::TensorFlowServingProtos->libs,
...
);
$build->create_build_script;
In your Makefile.PL:
use ExtUtils::MakeMaker;
use Config;
use AI::PredictionClient::Alien::TensorFlowServingProtos;
WriteMakefile(
...
CONFIGURE_REQUIRES => {
'AI::PredictionClient::Alien::TensorFlowServingProtos' => '0',
},
CCFLAGS => AI::PredictionClient::Alien::TensorFlowServingProtos->cflags . " $Config{ccflags}",
LIBS => [ AI::PredictionClient::Alien::TensorFlowServingProtos->libs ],
...
);
DESCRIPTION
This distribution builds a C++ library for use by other Perl XS modules to communicate with Google TensorFlow Serving model servers. It is primarily intended to be used with the cpan AI::PredictionClient module.
This module builds a library 'tensorflow_serving_protos_so' that provides the protos for the Predict, Classify, Regress and MultiInference prediction services.
The built library is installed in a private share location within this module for use by other modules.
DEPENDENCIES
This module is dependent on gRPC. This module will use the cpan module Alien::Google::GRPC to either use an existing gRPC installation on your system or if not found, the Alien::Google::GRPC module will download and build a private copy.
The system dependencies needed for this module to build are most often already installed. If not, the following dependencies need to be installed.
$ [sudo] apt-get install build-essential make g++
See the Alien::Google::GRPC for potential additional build dependencies.
At this time only Linux builds are supported.
CPAN Testers Note
This module may fail CPAN Testers' tests. The build support tools needed by this module and especially the Alien::Google::GRPC module are normally installed on the CPAN Testers' machines, but not always.
The system build tools dependencies have been reduced, so hopefully a large number of machines will build without manually installing system dependencies.
AUTHOR
Tom Stall stall@cpan.org
COPYRIGHT AND LICENSE
This software is copyright (c) 2017 by Tom Stall.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.