mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Remaining Tensor API fixes - dims() -> sizes() (#15743)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/15743 Remaining fixes so that D12812029 will compile Reviewed By: dzhulgakov Differential Revision: D13535559 fbshipit-source-id: 2c8b3403570c8c35ac8efe2d827233abc0e6e0d1
This commit is contained in:
committed by
Facebook Github Bot
parent
8b5894491c
commit
5e72e99c86
@ -246,7 +246,7 @@ bool PSRoIPoolOp<float, CUDAContext>::RunOnDevice() {
|
||||
|
||||
auto* Y = Output(0, {R.dim32(0), output_dim_, pooled_height_, pooled_width_}, at::dtype<float>()); // PSRoI pooled data
|
||||
auto* A = Output(1, Y->sizes(), at::dtype<int>()); // mapping_channel
|
||||
int output_size = Y->size();
|
||||
int output_size = Y->numel();
|
||||
PSRoIPoolForward<float><<<CAFFE_GET_BLOCKS(output_size),
|
||||
CAFFE_CUDA_NUM_THREADS,
|
||||
0, context_.cuda_stream()>>>(
|
||||
|
Reference in New Issue
Block a user