Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit f8a0f78

Browse files
author
Adam Procter
committed
Merge remote-tracking branch 'origin/master' into r0.10
2 parents cb4efed + 403a09c commit f8a0f78

File tree

143 files changed

+1002
-856
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+1002
-856
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ option(NGRAPH_ONNX_IMPORT_ENABLE "Enable ONNX importer" FALSE)
105105
option(NGRAPH_DEX_ONLY "Build CPU DEX without codegen" FALSE)
106106
option(NGRAPH_CODE_COVERAGE_ENABLE "Enable code coverage data collection" FALSE)
107107
option(NGRAPH_LIB_VERSIONING_ENABLE "Enable shared library versioning" FALSE)
108+
option(NGRAPH_PYTHON_BUILD_ENABLE "Enable build nGraph python package wheel" FALSE)
108109

109110
message(STATUS "NGRAPH_UNIT_TEST_ENABLE: ${NGRAPH_UNIT_TEST_ENABLE}")
110111
message(STATUS "NGRAPH_TOOLS_ENABLE: ${NGRAPH_TOOLS_ENABLE}")

python/ngraph/ops.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -924,9 +924,9 @@ def batch_norm(eps, # type: float
924924
# type: (...) -> Node
925925
"""Return batch normalization node."""
926926
if mean is None and variance is None:
927-
return BatchNormTraining(eps, gamma, beta, data)
927+
return BatchNormTraining(data, gamma, beta, eps)
928928
else:
929-
return BatchNormInference(eps, gamma, beta, data, mean, variance)
929+
return BatchNormInference(data, gamma, beta, mean, variance, eps)
930930

931931

932932
@nameable_op

python/pyngraph/ops/batch_norm.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ void regclass_pyngraph_op_BatchNormTraining(py::module m)
3030
batch_norm_training(m, "BatchNormTraining");
3131
batch_norm_training.doc() =
3232
"ngraph.impl.op.BatchNormTraining wraps ngraph::op::BatchNormTraining";
33-
batch_norm_training.def(py::init<double,
33+
batch_norm_training.def(py::init<const std::shared_ptr<ngraph::Node>&,
3434
const std::shared_ptr<ngraph::Node>&,
3535
const std::shared_ptr<ngraph::Node>&,
36-
const std::shared_ptr<ngraph::Node>&>());
36+
double>());
3737
}
3838

3939
void regclass_pyngraph_op_BatchNormInference(py::module m)
@@ -45,12 +45,12 @@ void regclass_pyngraph_op_BatchNormInference(py::module m)
4545
batch_norm_inference.doc() =
4646
"ngraph.impl.op.BatchNormInference wraps ngraph::op::BatchNormInference";
4747

48-
batch_norm_inference.def(py::init<double,
48+
batch_norm_inference.def(py::init<const std::shared_ptr<ngraph::Node>&,
4949
const std::shared_ptr<ngraph::Node>&,
5050
const std::shared_ptr<ngraph::Node>&,
5151
const std::shared_ptr<ngraph::Node>&,
5252
const std::shared_ptr<ngraph::Node>&,
53-
const std::shared_ptr<ngraph::Node>&>());
53+
double>());
5454
}
5555

5656
void regclass_pyngraph_op_BatchNormTrainingBackprop(py::module m)
@@ -61,11 +61,11 @@ void regclass_pyngraph_op_BatchNormTrainingBackprop(py::module m)
6161
batch_norm_training_backprop(m, "BatchNormTrainingBackprop");
6262
batch_norm_training_backprop.doc() =
6363
"ngraph.impl.op.BatchNormTrainingBackprop wraps ngraph::op::BatchNormTrainingBackprop";
64-
batch_norm_training_backprop.def(py::init<double,
64+
batch_norm_training_backprop.def(py::init<const std::shared_ptr<ngraph::Node>&,
6565
const std::shared_ptr<ngraph::Node>&,
6666
const std::shared_ptr<ngraph::Node>&,
6767
const std::shared_ptr<ngraph::Node>&,
6868
const std::shared_ptr<ngraph::Node>&,
6969
const std::shared_ptr<ngraph::Node>&,
70-
const std::shared_ptr<ngraph::Node>&>());
70+
double>());
7171
}

python/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def build_extensions(self):
352352
requirements = req.read().splitlines()
353353

354354
setup(
355-
name='ngraph',
355+
name='ngraph-core',
356356
version=__version__,
357357
author='Intel',
358358
author_email='[email protected]',

src/ngraph/descriptor/input.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ namespace ngraph
6060
void replace_output(Output& output);
6161

6262
protected:
63-
/// \return the tensor view for the connected output
63+
/// \return the tensor for the connected output
6464
std::shared_ptr<const Tensor> get_tensor_ptr() const;
6565

66-
/// \return the tensor view for the connected output
66+
/// \return the tensor for the connected output
6767
std::shared_ptr<Tensor> get_tensor_ptr();
6868

6969
public:

src/ngraph/descriptor/layout/tensor_layout.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace ngraph
3232
{
3333
namespace layout
3434
{
35-
/// \brief Interface for describing implementations of tensor views.
35+
/// \brief Interface for describing implementations of tensors.
3636
///
3737
/// Kernel selection will need to pay attention to the layout.
3838
class TensorLayout
@@ -44,7 +44,7 @@ namespace ngraph
4444

4545
public:
4646
virtual ~TensorLayout() {}
47-
/// Extent of this view in buffer.
47+
/// Extent of this tensor in buffer.
4848
///
4949
/// When we support non-linear buffers, this will need to be something other than size_t.
5050
size_t get_size() const;

src/ngraph/descriptor/output.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ namespace ngraph
3939
public:
4040
/// \param node Node that owns this output.
4141
/// \param index Position of the output tensor in all output tensors
42-
/// \param tensor The view of this tensor; where the value will be written
42+
/// \param tensor The tensor where the value will be written
4343
Output(Node* node, size_t index, const std::shared_ptr<Tensor>& tensor);
4444

4545
std::shared_ptr<Node> get_node() const;

src/ngraph/descriptor/tensor.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace ngraph
3535
class TensorLayout;
3636
}
3737

38-
/// \brief Compile-time descriptor of a first-class value that is a view of a tensor.
38+
/// \brief Compile-time descriptor of a first-class value that is a tensor.
3939
class Tensor
4040
{
4141
Tensor(const Tensor&) = delete;

src/ngraph/frontend/onnx_import/core/attribute.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include <onnx-ml.pb.h>
2020

2121
#include "ngraph/except.hpp"
22-
2322
#include "tensor.hpp"
2423

2524
namespace ngraph

src/ngraph/frontend/onnx_import/core/graph.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@
1616

1717
#pragma once
1818

19+
#include <onnx-ml.pb.h>
1920
#include <string>
2021
#include <vector>
2122

22-
#include <onnx-ml.pb.h>
23-
24-
#include "ngraph/parameter_vector.hpp"
25-
2623
#include "model.hpp"
24+
#include "ngraph/parameter_vector.hpp"
2725
#include "operator_set.hpp"
2826
#include "value_info.hpp"
2927
#include "weight.hpp"

0 commit comments

Comments
 (0)