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
51dc51eb
Commit
51dc51eb
authored
Jun 12, 2019
by
nishant.b.patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change file name to quantization_utils
parent
a91abd8b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
+9
-9
CMakeLists.txt
src/ngraph/CMakeLists.txt
+2
-2
quantization_utils.cpp
src/ngraph/builder/quantization_utils.cpp
+2
-2
quantization_utils.hpp
src/ngraph/builder/quantization_utils.hpp
+1
-1
quantized_conv_builder.cpp
src/ngraph/builder/quantized_conv_builder.cpp
+3
-3
quantized_conv_builder.hpp
src/ngraph/builder/quantized_conv_builder.hpp
+1
-1
No files found.
src/ngraph/CMakeLists.txt
View file @
51dc51eb
...
...
@@ -38,8 +38,8 @@ set (SRC
builder/quantization/quantized_linear_matmul.cpp
builder/quantization/quantized_linear_matmul.hpp
builder/quantization_util.hpp
builder/quantization_
scale
.hpp
builder/quantization_
scale
.cpp
builder/quantization_
utils
.hpp
builder/quantization_
utils
.cpp
builder/reduce_ops.cpp
builder/reduce_ops.hpp
builder/reshape.cpp
...
...
src/ngraph/builder/quantization_
scale
.cpp
→
src/ngraph/builder/quantization_
utils
.cpp
View file @
51dc51eb
...
...
@@ -14,13 +14,13 @@
// limitations under the License.
//*****************************************************************************
#include "quantization_
scale
.hpp"
#include "quantization_
utils
.hpp"
namespace
ngraph
{
namespace
builder
{
namespace
quantization_
scale
namespace
quantization_
utils
{
std
::
shared_ptr
<
Node
>
max_abs
(
std
::
shared_ptr
<
Node
>
a
,
std
::
shared_ptr
<
Node
>
b
)
{
...
...
src/ngraph/builder/quantization_
scale
.hpp
→
src/ngraph/builder/quantization_
utils
.hpp
View file @
51dc51eb
...
...
@@ -35,7 +35,7 @@ namespace ngraph
{
namespace
builder
{
namespace
quantization_
scale
namespace
quantization_
utils
{
std
::
shared_ptr
<
Node
>
max_abs
(
std
::
shared_ptr
<
Node
>
a
,
std
::
shared_ptr
<
Node
>
b
);
...
...
src/ngraph/builder/quantized_conv_builder.cpp
View file @
51dc51eb
...
...
@@ -45,10 +45,10 @@ namespace ngraph
const
ngraph
::
AxisSet
&
output_axes
)
{
auto
input_scale
=
quantization_
scale
::
get_scale
(
min_input
,
max_input
,
input
->
get_element_type
());
quantization_
utils
::
get_scale
(
min_input
,
max_input
,
input
->
get_element_type
());
auto
filter_scale
=
quantization_
scale
::
get_scale
(
min_filter
,
max_filter
,
filters
->
get_element_type
());
auto
output_scale
=
quantization_
scale
::
get_scale
(
min_output
,
max_output
,
output_type
);
quantization_
utils
::
get_scale
(
min_filter
,
max_filter
,
filters
->
get_element_type
());
auto
output_scale
=
quantization_
utils
::
get_scale
(
min_output
,
max_output
,
output_type
);
// TODO: Check for this later
// For Builders the zero point is assumed to be zero (for now)
...
...
src/ngraph/builder/quantized_conv_builder.hpp
View file @
51dc51eb
...
...
@@ -19,7 +19,7 @@
#include "ngraph/coordinate_diff.hpp"
#include "ngraph/node.hpp"
#include "ngraph/op/quantized_convolution.hpp"
#include "quantization_
scale
.hpp"
#include "quantization_
utils
.hpp"
namespace
ngraph
{
...
...
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