We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2834ba5 commit 35f484dCopy full SHA for 35f484d
lib/AI/TensorFlow/Libtensorflow/Operation.pm
@@ -180,6 +180,7 @@ $ffi->attach( [ 'OperationAllInputs' => 'AllInputs' ] => [
180
] => 'void' => sub {
181
my ($xs, $oper) = @_;
182
my $max_inputs = $oper->NumInputs;
183
+ return [] if $max_inputs == 0;
184
my $inputs = AI::TensorFlow::Libtensorflow::Output->_adef->create(0 + $max_inputs);
185
$xs->($oper, $inputs, $max_inputs);
186
return AI::TensorFlow::Libtensorflow::Output->_from_array($inputs);
0 commit comments