Commit a6e8172c authored by Paul's avatar Paul
Browse files

Formatting

parent 5aa0ba49
...@@ -7,12 +7,12 @@ ...@@ -7,12 +7,12 @@
namespace migraph { namespace migraph {
template<class T> template <class T>
struct xorshf96_generator struct xorshf96_generator
{ {
unsigned long x=123456789; unsigned long x = 123456789;
unsigned long y=362436069; unsigned long y = 362436069;
unsigned long z=521288629; unsigned long z = 521288629;
constexpr T operator()() constexpr T operator()()
{ {
......
...@@ -28,7 +28,7 @@ void eliminate_workspace::apply(program& p) const ...@@ -28,7 +28,7 @@ void eliminate_workspace::apply(program& p) const
} }
} }
auto ws = p.add_parameter("workspace", shape{shape::int8_type, {n}}); auto ws = p.add_parameter("workspace", shape{shape::int8_type, {n}});
for(auto&& a:allocs) for(auto&& a : allocs)
{ {
p.replace_instruction(a, ws); p.replace_instruction(a, ws);
p.remove_instruction(a); p.remove_instruction(a);
......
...@@ -125,7 +125,8 @@ struct miopen_convolution ...@@ -125,7 +125,8 @@ struct miopen_convolution
workspace_size, workspace_size,
false); false);
algo = perf.fwd_algo; algo = perf.fwd_algo;
return algo == miopenConvolutionFwdAlgoWinograd ? shape{shape::int8_type, {0}} : workspace_shape; return algo == miopenConvolutionFwdAlgoWinograd ? shape{shape::int8_type, {0}}
: workspace_shape;
} }
}; };
...@@ -332,7 +333,7 @@ struct miopen_apply ...@@ -332,7 +333,7 @@ struct miopen_apply
} }
} }
instruction_ref insert_allocation(instruction_ref ins, const shape& s, std::string tag="") instruction_ref insert_allocation(instruction_ref ins, const shape& s, std::string tag = "")
{ {
if(ins == --prog->end()) if(ins == --prog->end())
{ {
......
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