"vscode:/vscode.git/clone" did not exist on "62dd95870c812d87418e53229eb3fdee95c8a067"
Commit 6b44f839 authored by Paul's avatar Paul
Browse files

Formatting

parent 11dfd0df
...@@ -18,10 +18,7 @@ struct convolution ...@@ -18,10 +18,7 @@ struct convolution
std::array<std::size_t, 2> padding = {{0, 0}}; std::array<std::size_t, 2> padding = {{0, 0}};
std::array<std::size_t, 2> stride = {{1, 1}}; std::array<std::size_t, 2> stride = {{1, 1}};
std::array<std::size_t, 2> dilation = {{1, 1}}; std::array<std::size_t, 2> dilation = {{1, 1}};
std::string name() const std::string name() const { return "convolution"; }
{
return "convolution";
}
shape compute_shape(std::vector<shape> inputs) const shape compute_shape(std::vector<shape> inputs) const
{ {
if(inputs.size() != 2) if(inputs.size() != 2)
...@@ -74,10 +71,7 @@ struct pooling ...@@ -74,10 +71,7 @@ struct pooling
std::array<std::size_t, 2> padding = {{0, 0}}; std::array<std::size_t, 2> padding = {{0, 0}};
std::array<std::size_t, 2> stride = {{1, 1}}; std::array<std::size_t, 2> stride = {{1, 1}};
std::array<std::size_t, 2> lengths = {{1, 1}}; std::array<std::size_t, 2> lengths = {{1, 1}};
std::string name() const std::string name() const { return "pooling"; }
{
return "pooling";
}
shape compute_shape(std::vector<shape> inputs) const shape compute_shape(std::vector<shape> inputs) const
{ {
if(inputs.empty()) if(inputs.empty())
......
...@@ -6,13 +6,11 @@ ...@@ -6,13 +6,11 @@
namespace rtg { namespace rtg {
template<class T> template <class T>
struct stream_range_container struct stream_range_container
{ {
const T* r; const T* r;
stream_range_container(const T& x) stream_range_container(const T& x) : r(&x) {}
: r(&x)
{}
friend std::ostream& operator<<(std::ostream& os, const stream_range_container& sr) friend std::ostream& operator<<(std::ostream& os, const stream_range_container& sr)
{ {
...@@ -20,7 +18,8 @@ struct stream_range_container ...@@ -20,7 +18,8 @@ struct stream_range_container
if(!sr.r->empty()) if(!sr.r->empty())
{ {
os << sr.r->front(); os << sr.r->front();
std::for_each(std::next(sr.r->begin()), sr.r->end(), [&](auto&& x) { os << ", " << x; }); std::for_each(
std::next(sr.r->begin()), sr.r->end(), [&](auto&& x) { os << ", " << x; });
} }
return os; return os;
} }
......
...@@ -154,7 +154,6 @@ void insert_replace_test() ...@@ -154,7 +154,6 @@ void insert_replace_test()
EXPECT(result != rtg::literal{5}); EXPECT(result != rtg::literal{5});
} }
void target_test() void target_test()
{ {
rtg::program p; rtg::program p;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment