Skip to content

Commit

Permalink
remove unused variables (pytorch#59912)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: pytorch#59912

Reviewed By: soulitzer

Differential Revision: D29100518

Pulled By: albanD

fbshipit-source-id: b86a4aa9050e4fa70a0872c1d8799e5953cd2bc8
  • Loading branch information
cyyever authored and facebook-github-bot committed Jun 14, 2021
1 parent 580a20f commit c50c77b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions aten/src/ATen/native/Convolution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,6 @@ static void check_shape_forward(const at::Tensor& input,
int64_t weight_dim = weight_sizes.size();
int64_t groups = params.groups;
auto padding = params.padding;
auto output_padding = params.output_padding;
auto stride = params.stride;
auto dilation = params.dilation;
bool transposed = params.transposed;

Expand Down Expand Up @@ -527,7 +525,6 @@ static void check_shape_forward(const at::Tensor& input,
// If kernel size is incorrect
std::ostringstream input_ss;
std::ostringstream kernel_ss;
std::ostringstream output_ss;
std::string separator = "";

for (int i = 0, len = input_shape.size(); i < len; ++i) {
Expand Down
1 change: 0 additions & 1 deletion aten/src/ATen/native/TensorShape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,6 @@ std::vector<Tensor> unsafe_chunk(const Tensor& self, int64_t chunks, int64_t dim
TORCH_CHECK(chunks > 0,
"chunk expects `chunks` to be greater than 0, got: ", chunks);

std::vector<Tensor> result;
const auto dim_size = self.size(dim);
int64_t split_size = (dim_size + chunks - 1) / chunks;

Expand Down
1 change: 0 additions & 1 deletion torch/csrc/autograd/python_function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,6 @@ static void _trace_post_record(

// Isolate C variable ptrs in a vector
int num_outputs = PyTuple_GET_SIZE(output_objects);
variable_list output_vars(num_outputs);
auto graph = node->owningGraph();
node->addOutput();
if (!unpack_output) {
Expand Down

0 comments on commit c50c77b

Please sign in to comment.