| 1 | package AI::TensorFlow::Libtensorflow::_Misc; | ||
| 2 | # ABSTRACT: Private API | ||
| 3 | $AI::TensorFlow::Libtensorflow::_Misc::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( 'TensorFromProto' => [ | ||
| 13 | arg 'TF_Buffer' => 'from', | ||
| 14 | arg 'TF_Tensor' => 'to', | ||
| 15 | arg 'TF_Status' => 'status', | ||
| 16 | ]); | ||
| 17 | |||
| 18 | |||
| 19 | 1; | ||
| 20 | |||
| 21 | __END__ |