The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

AI::TensorFlow::Libtensorflow::Session - Session for driving ::Graph execution

CONSTRUCTORS

New

Parameters

TFGraph $graph

Graph to associate with the session.

TFSessionOptions $opt

Session options.

TFStatus $status

Status.

Returns

Maybe[TFSession]

A new execution session with the associated graph, or undef on error.

C API: TF_NewSession

LoadFromSavedModel

C API: TF_LoadSessionFromSavedModel

METHODS

Run

Run the graph associated with the session starting with the supplied $inputs with corresponding values in $input_values.

The values at the outputs given by $outputs will be placed in $output_values.

Parameters

Maybe[TFBuffer] $run_options

Optional TFBuffer containing serialized representation of a `RunOptions` protocol buffer.

ArrayRef[TFOutput] $inputs

Inputs to set.

ArrayRef[TFTensor] $input_values

Values to assign to the inputs given by $inputs.

ArrayRef[TFOutput] $outputs

Outputs to get.

ArrayRef[TFTensor] $output_values

Reference to where the output values for $outputs will be placed.

ArrayRef[TFOperation] $target_opers

TODO

Maybe[TFBuffer] $run_metadata

Optional empty TFBuffer which will be updated to contain a serialized representation of a `RunMetadata` protocol buffer.

TFStatus $status

Status

C API: TF_SessionRun

PRunSetup

C API: TF_SessionPRunSetup

AI::TensorFlow::Libtensorflow::Session::_PRHandle::DESTROY

C API: TF_DeletePRunHandle

PRun

C API: TF_SessionPRun

ListDevices

C API: TF_SessionListDevices

Close

TODO

C API: TF_CloseSession

_Delete

C API: TF_DeleteSession

AUTHOR

Zakariyya Mughal <zmughal@cpan.org>

COPYRIGHT AND LICENSE

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