Unverified Commit a2ba10b5 authored by Yixing Lao's avatar Yixing Lao Committed by GitHub

fix clang error (#966)

parent f6eec91f
......@@ -41,6 +41,8 @@ namespace ngraph
{
protected:
TensorViewLayout(const ngraph::descriptor::TensorView& tensor_view);
TensorViewLayout(const TensorViewLayout&) = delete;
TensorViewLayout& operator=(const TensorViewLayout&) = delete;
public:
virtual ~TensorViewLayout() {}
......
......@@ -3312,11 +3312,12 @@ namespace ngraph
{
auto input_tvl =
node->get_inputs()[0].get_output().get_tensor_view()->get_tensor_view_layout();
auto input_cpu_tvl = dynamic_cast<runtime::cpu::LayoutDescriptor&>(*input_tvl);
auto input_format = input_cpu_tvl.get_mkldnn_format();
auto input_cpu_tvl =
dynamic_pointer_cast<runtime::cpu::LayoutDescriptor>(input_tvl);
auto input_format = input_cpu_tvl->get_mkldnn_format();
// Reorder input shape if needed
auto input_axis_order = input_cpu_tvl.get_axis_order();
auto input_axis_order = input_cpu_tvl->get_axis_order();
Shape input_shape(input_axis_order.size());
for (size_t idx = 0; idx < input_axis_order.size(); idx++)
{
......
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