Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Fix Perl build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
reminisce committed Apr 12, 2019
1 parent f83b05d commit 5cf1517
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion perl-package/AI-MXNet/lib/AI/MXNet/Executor.pm
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ method reshape(HashRef[Shape] $kwargs, Int :$partial_shaping=0, Int :$allow_up_s
my $shared_handle = $self->handle;

my ($in_args_and_grad_handles, $aux_state_handles, $handle) = check_call(
AI::MXNetCAPI::ExecutorReshape(
AI::MXNetCAPI::ExecutorReshapeEx(
$partial_shaping,
$allow_up_sizing,
$self->_ctx->device_type_id,
Expand Down
4 changes: 2 additions & 2 deletions perl-package/AI-MXNet/lib/AI/MXNet/NDArray.pm
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ method wait_to_read()

method shape()
{
return scalar(check_call(AI::MXNetCAPI::NDArrayGetShape($self->handle)));
return scalar(check_call(AI::MXNetCAPI::NDArrayGetShapeEx($self->handle)));
}

=head2 size
Expand Down Expand Up @@ -1460,7 +1460,7 @@ func _new_alloc_handle($shape, $ctx, $delay_alloc, $dtype)
method _new_from_shared_mem($shared_pid, $shared_id, $shape, $dtype)
{
my $hdl = check_call(
AI::MXNetCAPI::NDArrayCreateFromSharedMem(
AI::MXNetCAPI::NDArrayCreateFromSharedMemEx(
$shared_pid,
$shared_id,
$shape,
Expand Down
4 changes: 2 additions & 2 deletions perl-package/AI-MXNet/lib/AI/MXNet/Symbol.pm
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ method _infer_shape_impl(Maybe[Str|Shape] @args)
push @{ $indptr }, scalar(@{ $sdata });
}
}
my $infer_func = $partial ? \&AI::MXNetCAPI::SymbolInferShapePartial : \&AI::MXNetCAPI::SymbolInferShape;
my $infer_func = $partial ? \&AI::MXNetCAPI::SymbolInferShapePartialEx : \&AI::MXNetCAPI::SymbolInferShapeEx;
my ($arg_shapes, $out_shapes, $aux_shapes, $complete) = check_call(
$infer_func->(
$self->handle,
Expand Down Expand Up @@ -937,7 +937,7 @@ method simple_bind(
($updated_shared_data, $in_arg_handles, $arg_grad_handles, $aux_state_handles, $exe_handle)
=
check_call(
AI::MXNetCAPI::ExecutorSimpleBind(
AI::MXNetCAPI::ExecutorSimpleBindEx(
$self->handle,
$ctx->device_type_id,
$ctx->device_id,
Expand Down

0 comments on commit 5cf1517

Please sign in to comment.