Libtensorflow/ImportGraphDefOptions.pm untested

filter: Statementstmt 0.0% 0 / 55 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 59 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package AI::TensorFlow::Libtensorflow::ImportGraphDefOptions;
2 # ABSTRACT: Holds options that can be passed to ::Graph::ImportGraphDef
3 $AI::TensorFlow::Libtensorflow::ImportGraphDefOptions::VERSION = '0.0.7';
4 use strict;
5 use warnings;
6 use namespace::autoclean;
7 use AI::TensorFlow::Libtensorflow::Lib qw(arg);
8  
9 my $ffi = AI::TensorFlow::Libtensorflow::Lib->ffi;
10 $ffi->mangler(AI::TensorFlow::Libtensorflow::Lib->mangler_default);
11  
12 $ffi->attach( [ 'NewImportGraphDefOptions' => 'New' ] => [] => 'TF_ImportGraphDefOptions' );
13  
14 $ffi->attach( [ 'DeleteImportGraphDefOptions' => 'DESTROY' ] => [
15 arg 'TF_ImportGraphDefOptions' => 'self',
16 ] => 'void' );
17  
18 $ffi->attach( [ 'ImportGraphDefOptionsSetPrefix' => 'SetPrefix' ] => [
19 arg 'TF_ImportGraphDefOptions' => 'opts',
20 arg 'string' => 'prefix',
21 ] => 'void' );
22  
23 $ffi->attach( [ 'ImportGraphDefOptionsAddInputMapping' => 'AddInputMapping' ] => [
24 arg 'TF_ImportGraphDefOptions' => 'opts',
25 arg 'string' => 'src_name',
26 arg 'int' => 'src_index',
27 arg 'TF_Output' => 'dst',
28 ] => 'void');
29  
30 $ffi->attach( [ 'ImportGraphDefOptionsAddReturnOutput' => 'AddReturnOutput' ] => [
31 arg TF_ImportGraphDefOptions => 'opts',
32 arg string => 'oper_name',
33 arg int => 'index',
34 ] => 'void' );
35  
36 $ffi->attach( [ 'ImportGraphDefOptionsNumReturnOutputs' => 'NumReturnOutputs' ] => [
37 arg TF_ImportGraphDefOptions => 'opts',
38 ] => 'int');
39  
40 $ffi->attach( [ 'ImportGraphDefOptionsAddReturnOperation' => 'AddReturnOperation' ] => [
41 arg TF_ImportGraphDefOptions => 'opts',
42 arg string => 'oper_name',
43 ] => 'void' );
44  
45 $ffi->attach( [ 'ImportGraphDefOptionsNumReturnOperations' => 'NumReturnOperations' ] => [
46 arg TF_ImportGraphDefOptions => 'opts',
47 ] => 'int' );
48  
49 $ffi->attach( [ 'ImportGraphDefOptionsAddControlDependency' => 'AddControlDependency' ] => [
50 arg TF_ImportGraphDefOptions => 'opts',
51 arg TF_Operation => 'oper',
52 ] => 'void' );
53  
54 $ffi->attach( [ 'ImportGraphDefOptionsRemapControlDependency' => 'RemapControlDependency' ] => [
55 arg TF_ImportGraphDefOptions => 'opts',
56 arg string => 'src_name',
57 arg TF_Operation => 'dst',
58 ] => 'void' );
59  
60 1;
61  
62 __END__