Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ngraph
Commits
324efb18
Commit
324efb18
authored
Mar 29, 2018
by
Nick Korovaiko
Committed by
Adam Procter
Mar 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix conv_relu's copy_with_new_args c-tor (#778)
parent
5b760fff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
15 deletions
+45
-15
conv_bias.cpp
src/ngraph/runtime/cpu/op/conv_bias.cpp
+16
-15
conv_relu.cpp
src/ngraph/runtime/cpu/op/conv_relu.cpp
+29
-0
No files found.
src/ngraph/runtime/cpu/op/conv_bias.cpp
View file @
324efb18
...
...
@@ -71,21 +71,22 @@ op::ConvolutionBias::ConvolutionBias(const shared_ptr<Node>& data_batch,
throw
ngraph_error
(
"Convolution data batch and filter element types do not match"
);
}
set_value_type_checked
(
data_batch_et
,
util
::
infer_convolution_output_shape
(
data_batch_shape
,
filters_shape
,
window_movement_strides
,
window_dilation_strides
,
padding_below
,
padding_above
,
data_dilation_strides
,
0
,
1
,
1
,
0
,
0
,
1
,
""
));
set_value_type_checked
(
data_batch_et
,
util
::
infer_convolution_output_shape
(
data_batch_shape
,
filters_shape
,
window_movement_strides
,
window_dilation_strides
,
padding_below
,
padding_above
,
data_dilation_strides
,
0
,
/* batch_axis_data, */
1
,
/* input_channel_axis_data, */
1
,
/* input_channel_axis_filters, */
0
,
/* output_channel_axis_filters, */
0
,
/* batch_axis_result, */
1
,
/* output_channel_axis_result, */
""
));
}
shared_ptr
<
Node
>
op
::
ConvolutionBias
::
copy_with_new_args
(
const
NodeVector
&
new_args
)
const
...
...
src/ngraph/runtime/cpu/op/conv_relu.cpp
View file @
324efb18
...
...
@@ -49,6 +49,35 @@ op::ConvolutionRelu::ConvolutionRelu(const std::shared_ptr<Node>& data_batch,
,
m_padding_above
(
padding_above
)
,
m_data_dilation_strides
(
data_dilation_strides
)
{
auto
&
data_batch_shape
=
data_batch
->
get_shape
();
auto
&
data_batch_et
=
data_batch
->
get_element_type
();
auto
&
filters_shape
=
filters
->
get_shape
();
auto
&
filters_et
=
filters
->
get_element_type
();
//
// Make sure data batch and filter element types match.
//
if
(
data_batch_et
!=
filters_et
)
{
throw
ngraph_error
(
"Convolution data batch and filter element types do not match"
);
}
set_value_type_checked
(
data_batch_et
,
util
::
infer_convolution_output_shape
(
data_batch_shape
,
filters_shape
,
window_movement_strides
,
window_dilation_strides
,
padding_below
,
padding_above
,
data_dilation_strides
,
0
,
/* batch_axis_data, */
1
,
/* input_channel_axis_data, */
1
,
/* input_channel_axis_filters, */
0
,
/* output_channel_axis_filters, */
0
,
/* batch_axis_result, */
1
,
/* output_channel_axis_result, */
""
));
}
std
::
shared_ptr
<
Node
>
op
::
ConvolutionRelu
::
copy_with_new_args
(
const
NodeVector
&
new_args
)
const
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment