Skip to content

Commit

Permalink
Apply clang formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
ybubnov committed Aug 18, 2024
1 parent edc01c6 commit b98e842
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
5 changes: 4 additions & 1 deletion src/embedding_op.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,10 @@ check_shape_forward(
TORCH_CHECK(options.is_padding_inside(), op, ": padding should be inside of the manifold");

TORCH_CHECK(input.dim() == 2, op, ": input must be 2D, got ", input.dim(), "D");
TORCH_CHECK(input.size(1) == 2, op, ": input must be comprised of 2D coordinates, got", input.size(1), "D");
TORCH_CHECK(
input.size(1) == 2, op, ": input must be comprised of 2D coordinates, got", input.size(1),
"D"
);
TORCH_CHECK(
input.dtype() == torch::kFloat64, op, ": operation only supports Float64 input, got ",
input.dtype()
Expand Down
10 changes: 5 additions & 5 deletions test/embedding_op_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

#include <torch_geopooling.h>

#include <embedding_op.h>
#include "testing.h"
#include <embedding_op.h>


using namespace torch_geopooling;
Expand All @@ -19,7 +19,7 @@ BOOST_AUTO_TEST_SUITE(TestEmbeddingOperation)

BOOST_AUTO_TEST_CASE(embedding_options_exterior)
{
auto options = embedding_options {
auto options = embedding_options{
.padding = {0, 0},
.exterior = {0, 0},
.manifold = {0, 0},
Expand All @@ -37,7 +37,7 @@ BOOST_AUTO_TEST_CASE(embedding_options_exterior)

BOOST_AUTO_TEST_CASE(embedding_options_padding)
{
auto options = embedding_options {
auto options = embedding_options{
.padding = {0},
.exterior = {0.0, 0.0, 10.0, 10.0},
.manifold = {4, 4, 3},
Expand Down Expand Up @@ -71,7 +71,7 @@ BOOST_AUTO_TEST_CASE(embedding_options_padding)

BOOST_AUTO_TEST_CASE(embedding_check_shape_forward)
{
auto options = embedding_options {
auto options = embedding_options{
.padding = {0, 0},
.exterior = {0.0, 0.0, 10.0, 10.0},
.manifold = {16, 16, 5},
Expand Down Expand Up @@ -119,7 +119,7 @@ BOOST_AUTO_TEST_CASE(embedding_check_shape_forward)

BOOST_AUTO_TEST_CASE(embedding_check_shape_backward)
{
auto options = embedding_options {
auto options = embedding_options{
.padding = {4, 2},
.exterior = {0.0, 0.0, 10.0, 10.0},
.manifold = {16, 16, 7},
Expand Down
2 changes: 1 addition & 1 deletion test/quadpool_op_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

#include <torch_geopooling.h>

#include <quadpool_op.h>
#include "testing.h"
#include <quadpool_op.h>


using namespace torch_geopooling;
Expand Down

0 comments on commit b98e842

Please sign in to comment.