AI::TensorFlow::Libtensorflow::ApiDefMap - Maps Operation to API description
use aliased 'AI::TensorFlow::Libtensorflow::ApiDefMap' => 'ApiDefMap';
use AI::TensorFlow::Libtensorflow; use AI::TensorFlow::Libtensorflow::Status; my $map = ApiDefMap->New( AI::TensorFlow::Libtensorflow::TFLibrary->GetAllOpList, my $status = AI::TensorFlow::Libtensorflow::Status->New ); ok $map, 'Created ApiDefMap';
C API: TF_NewApiDefMap
TF_NewApiDefMap
C API: TF_ApiDefMapPut
TF_ApiDefMapPut
Get($name, $status)
my $api_def_buf = $map->Get( 'NoOp', my $status = AI::TensorFlow::Libtensorflow::Status->New ); cmp_ok $api_def_buf->length, '>', 0, 'Got ApiDef buffer for NoOp operation';
Parameters
Name of the operation to retrieve.
Status.
Returns
Contains a serialized ApiDef proto for the operation.
ApiDef
C API: TF_ApiDefMapGet
TF_ApiDefMapGet
C API: TF_DeleteApiDefMap
TF_DeleteApiDefMap
Zakariyya Mughal <zmughal@cpan.org>
This software is Copyright (c) 2022-2023 by Auto-Parallel Technologies, Inc.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
To install AI::TensorFlow::Libtensorflow, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AI::TensorFlow::Libtensorflow
CPAN shell
perl -MCPAN -e shell install AI::TensorFlow::Libtensorflow
For more information on module installation, please visit the detailed CPAN module installation guide.