Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
b9c8938
Fix name of group attribute for ONNX Conv operation.
rcurtin Jun 29, 2026
27f96b1
Add support for DAG Add connections and GlobalAveragePool layer.
rcurtin Jun 29, 2026
76c9752
Better output from final match list.
rcurtin Jun 29, 2026
da97cc9
Remove reshapes on the output.
rcurtin Jun 29, 2026
f672ab7
Add tests for mobilenet.
rcurtin Jun 29, 2026
f55ead1
Try a more qualified name.
rcurtin Jun 29, 2026
ef3b7a4
Remove old Convert() method.
rcurtin Jun 29, 2026
d056563
Backport putting ConnectionTypes into the mlpack namespace.
rcurtin Jun 29, 2026
c185ea2
Remove the rest of the old network and fix the tests.
rcurtin Jun 29, 2026
d54cc8a
Add rule to match ONNX Softmax operator.
rcurtin Jun 29, 2026
6c32064
Adapt test to new subgraph matching strategy.
rcurtin Jun 29, 2026
f807a61
Adapt to new API.
rcurtin Jun 29, 2026
0d8f812
Change the user API to something a little clearer.
rcurtin Jun 29, 2026
b2282af
Incremental commit.
rcurtin Jun 29, 2026
5367f17
Merge branch 'mobilenet-subgraph' into finish-docs-and-example
rcurtin Jun 29, 2026
3ef509c
Add documentation and working example.
rcurtin Jun 29, 2026
443dcf8
Remove old examples as they are no longer needed.
rcurtin Jun 29, 2026
d2a7b62
Clearer readme.
rcurtin Jun 29, 2026
791e51a
Make sure 'install' target works.
rcurtin Jun 29, 2026
91bf189
Fix compilation failure.
rcurtin Jun 29, 2026
0678b0b
Clarify language, it's no longer primitive.
rcurtin Jun 29, 2026
a0ed5ef
Oops, export image correctly this time.
rcurtin Jun 29, 2026
a2d71da
Add BSD 3-clause license to all files.
rcurtin Jun 29, 2026
936b83f
Merge remote-tracking branch 'origin/master' into add-licenses
rcurtin Jul 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions examples/convert_mobilenet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
*
* Example usage of the ONNX/mlpack converter to convert the MobileNet v2.7
* network to an mlpack::DAGNetwork<> and use it to classify a few test images.
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#include <onnx_mlpack.hpp>

Expand Down
5 changes: 5 additions & 0 deletions include/onnx_mlpack.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
*
* Include this file to include all the necessary functions for the ONNX-mlpack
* converter.
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#ifndef ONNX_MLPACK_HPP
#define ONNX_MLPACK_HPP
Expand Down
5 changes: 5 additions & 0 deletions include/onnx_mlpack/apply_initial_reshapes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
* If a network has Reshape operations applied to any initialized tensors,
* remove those Reshape operations and change the sizes of the initialized
* tensors.
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#ifndef ONNX_MLPACK_APPLY_INITIAL_RESHAPES_HPP
#define ONNX_MLPACK_APPLY_INITIAL_RESHAPES_HPP
Expand Down
5 changes: 5 additions & 0 deletions include/onnx_mlpack/convert.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
* @author Ryan Curtin
*
* Top-level functions for converting ONNX graphs to mlpack DAGNetworks.
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#ifndef ONNX_MLPACK_CONVERT_HPP
#define ONNX_MLPACK_CONVERT_HPP
Expand Down
5 changes: 5 additions & 0 deletions include/onnx_mlpack/convert_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
* @author Ryan Curtin
*
* Implementation of ONNX-mlpack converter (top level).
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#ifndef ONNX_MLPACK_CONVERT_IMPL_HPP
#define ONNX_MLPACK_CONVERT_IMPL_HPP
Expand Down
5 changes: 5 additions & 0 deletions include/onnx_mlpack/extract_attribute.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
*
* Given the name of an attribute, extract its value from the given node and
* return a bool indicating whether the operation was successful.
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#ifndef ONNX_MLPACK_EXTRACT_ATTRIBUTE_HPP
#define ONNX_MLPACK_EXTRACT_ATTRIBUTE_HPP
Expand Down
5 changes: 5 additions & 0 deletions include/onnx_mlpack/extract_scalar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
*
* Given the name of a tensor, extract a scalar and return a bool indicating
* whether the operation was successful.
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#ifndef ONNX_MLPACK_EXTRACT_SCALAR_HPP
#define ONNX_MLPACK_EXTRACT_SCALAR_HPP
Expand Down
9 changes: 7 additions & 2 deletions include/onnx_mlpack/matchers/add_connection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@
* Candidate ONNX subgraphs that can match an Add ONNX operation that represents
* when the outputs of two other layers need to be added together as inputs to
* another layer.
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#ifndef ONNX_MLPACK_MATCHERS_ADD_HPP
#define ONNX_MLPACK_MATCHERS_ADD_HPP
#ifndef ONNX_MLPACK_MATCHERS_ADD_CONNECTION_HPP
#define ONNX_MLPACK_MATCHERS_ADD_CONNECTION_HPP

namespace onnx_mlpack {

Expand Down
5 changes: 5 additions & 0 deletions include/onnx_mlpack/matchers/add_connection_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
*
* Candidate ONNX subgraphs that can match an Add ONNX operation that represents
* when the outputs of two other layers need to be added together.
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#ifndef ONNX_MLPACK_MATCHERS_ADD_CONNECTION_IMPL_HPP
#define ONNX_MLPACK_MATCHERS_ADD_CONNECTION_IMPL_HPP
Expand Down
5 changes: 5 additions & 0 deletions include/onnx_mlpack/matchers/batch_norm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
* @author Ryan Curtin
*
* Candidate ONNX subgraphs that can match the BatchNormalization layer.
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#ifndef ONNX_MLPACK_MATCHERS_BATCH_NORM_HPP
#define ONNX_MLPACK_MATCHERS_BATCH_NORM_HPP
Expand Down
5 changes: 5 additions & 0 deletions include/onnx_mlpack/matchers/batch_norm_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
* @author Ryan Curtin
*
* Candidate ONNX subgraphs that can match the BatchNorm layer.
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#ifndef ONNX_MLPACK_MATCHERS_BATCH_NORM_IMPL_HPP
#define ONNX_MLPACK_MATCHERS_BATCH_NORM_IMPL_HPP
Expand Down
5 changes: 5 additions & 0 deletions include/onnx_mlpack/matchers/celu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
* @author Ryan Curtin
*
* Candidate ONNX subgraphs that can match the CELU layer.
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#ifndef ONNX_MLPACK_MATCHERS_CELU_HPP
#define ONNX_MLPACK_MATCHERS_CELU_HPP
Expand Down
5 changes: 5 additions & 0 deletions include/onnx_mlpack/matchers/celu_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
* @author Ryan Curtin
*
* Candidate ONNX subgraphs that can match the CELU layer.
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#ifndef ONNX_MLPACK_MATCHERS_CELU_IMPL_HPP
#define ONNX_MLPACK_MATCHERS_CELU_IMPL_HPP
Expand Down
5 changes: 5 additions & 0 deletions include/onnx_mlpack/matchers/conv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
* @author Ryan Curtin
*
* Candidate ONNX subgraphs that can match the Conv layer.
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#ifndef ONNX_MLPACK_MATCHERS_CONV_HPP
#define ONNX_MLPACK_MATCHERS_CONV_HPP
Expand Down
5 changes: 5 additions & 0 deletions include/onnx_mlpack/matchers/conv_add.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
*
* Candidate ONNX subgraphs that can match the Conv layer when it is followed by
* an Add (per-feature-map bias).
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#ifndef ONNX_MLPACK_MATCHERS_CONV_ADD_HPP
#define ONNX_MLPACK_MATCHERS_CONV_ADD_HPP
Expand Down
5 changes: 5 additions & 0 deletions include/onnx_mlpack/matchers/conv_add_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
* @author Ryan Curtin
*
* Candidate ONNX subgraphs that can match the Conv layer.
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#ifndef ONNX_MLPACK_MATCHERS_CONV_ADD_IMPL_HPP
#define ONNX_MLPACK_MATCHERS_CONV_ADD_IMPL_HPP
Expand Down
5 changes: 5 additions & 0 deletions include/onnx_mlpack/matchers/conv_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
* @author Ryan Curtin
*
* Candidate ONNX subgraphs that can match the Conv layer.
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#ifndef ONNX_MLPACK_MATCHERS_CONV_IMPL_HPP
#define ONNX_MLPACK_MATCHERS_CONV_IMPL_HPP
Expand Down
5 changes: 5 additions & 0 deletions include/onnx_mlpack/matchers/elu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
* @author Ryan Curtin
*
* Candidate ONNX subgraphs that can match the ELU layer.
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#ifndef ONNX_MLPACK_MATCHERS_ELU_HPP
#define ONNX_MLPACK_MATCHERS_ELU_HPP
Expand Down
5 changes: 5 additions & 0 deletions include/onnx_mlpack/matchers/elu_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
* @author Ryan Curtin
*
* Candidate ONNX subgraphs that can match the ELU layer.
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#ifndef ONNX_MLPACK_MATCHERS_ELU_IMPL_HPP
#define ONNX_MLPACK_MATCHERS_ELU_IMPL_HPP
Expand Down
5 changes: 5 additions & 0 deletions include/onnx_mlpack/matchers/elu_piecewise.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
* Candidate ONNX subgraphs that can match the ELU layer when it is represented
* as a strange series of piecewise operations (this is the default output of
* TensorFlow).
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#ifndef ONNX_MLPACK_MATCHERS_ELU_PIECEWISE_HPP
#define ONNX_MLPACK_MATCHERS_ELU_PIECEWISE_HPP
Expand Down
5 changes: 5 additions & 0 deletions include/onnx_mlpack/matchers/elu_piecewise_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
*
* Candidate ONNX subgraph that can match the ELU layer when it is represented
* as a series of piecewise operations.
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#ifndef ONNX_MLPACK_MATCHERS_ELU_PIECEWISE_IMPL_HPP
#define ONNX_MLPACK_MATCHERS_ELU_PIECEWISE_IMPL_HPP
Expand Down
5 changes: 5 additions & 0 deletions include/onnx_mlpack/matchers/gelu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
* @author Ryan Curtin
*
* Candidate ONNX subgraphs that can match the approximate GELU layer.
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#ifndef ONNX_MLPACK_MATCHERS_GELU_HPP
#define ONNX_MLPACK_MATCHERS_GELU_HPP
Expand Down
5 changes: 5 additions & 0 deletions include/onnx_mlpack/matchers/gelu_exact.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
* @author Ryan Curtin
*
* Candidate ONNX subgraphs that can match the exact GELU layer.
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#ifndef ONNX_MLPACK_MATCHERS_GELU_EXACT_HPP
#define ONNX_MLPACK_MATCHERS_GELU_EXACT_HPP
Expand Down
5 changes: 5 additions & 0 deletions include/onnx_mlpack/matchers/gelu_exact_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
* @author Ryan Curtin
*
* Candidate ONNX subgraphs that can match the exact GELU layer.
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#ifndef ONNX_MLPACK_MATCHERS_GELU_EXACT_IMPL_HPP
#define ONNX_MLPACK_MATCHERS_GELU_EXACT_IMPL_HPP
Expand Down
5 changes: 5 additions & 0 deletions include/onnx_mlpack/matchers/gelu_exact_multi_op.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
*
* Candidate ONNX subgraphs that can match the exact GELU layer when it is
* represented by several operations.
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#ifndef ONNX_MLPACK_MATCHERS_GELU_EXACT_MULTI_OP_HPP
#define ONNX_MLPACK_MATCHERS_GELU_EXACT_MULTI_OP_HPP
Expand Down
5 changes: 5 additions & 0 deletions include/onnx_mlpack/matchers/gelu_exact_multi_op_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
*
* Candidate ONNX subgraph that can match the GELU layer when it is represented
* as a series of operations.
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#ifndef ONNX_MLPACK_MATCHERS_GELU_EXACT_MULTI_OP_IMPL_HPP
#define ONNX_MLPACK_MATCHERS_GELU_EXACT_MULTI_OP_IMPL_HPP
Expand Down
5 changes: 5 additions & 0 deletions include/onnx_mlpack/matchers/gelu_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
* @author Ryan Curtin
*
* Candidate ONNX subgraphs that can match the approximate GELU layer.
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#ifndef ONNX_MLPACK_MATCHERS_GELU_IMPL_HPP
#define ONNX_MLPACK_MATCHERS_GELU_IMPL_HPP
Expand Down
5 changes: 5 additions & 0 deletions include/onnx_mlpack/matchers/gelu_multi_op.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
*
* Candidate ONNX subgraphs that can match the approximate GELU layer when it is
* represented by several operations.
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#ifndef ONNX_MLPACK_MATCHERS_GELU_MULTI_OP_HPP
#define ONNX_MLPACK_MATCHERS_GELU_MULTI_OP_HPP
Expand Down
5 changes: 5 additions & 0 deletions include/onnx_mlpack/matchers/gelu_multi_op_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
*
* Candidate ONNX subgraph that can match the approximate GELU layer when it is
* represented as a series of operations.
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#ifndef ONNX_MLPACK_MATCHERS_GELU_MULTI_OP_IMPL_HPP
#define ONNX_MLPACK_MATCHERS_GELU_MULTI_OP_IMPL_HPP
Expand Down
5 changes: 5 additions & 0 deletions include/onnx_mlpack/matchers/hard_sigmoid.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
* @author Ryan Curtin
*
* Candidate ONNX subgraphs that can match the HardSigmoid layer.
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#ifndef ONNX_MLPACK_MATCHERS_HARD_SIGMOID_HPP
#define ONNX_MLPACK_MATCHERS_HARD_SIGMOID_HPP
Expand Down
5 changes: 5 additions & 0 deletions include/onnx_mlpack/matchers/hard_sigmoid_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
* @author Ryan Curtin
*
* Candidate ONNX subgraphs that can match the HardSigmoid layer.
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#ifndef ONNX_MLPACK_MATCHERS_HARD_SIGMOID_IMPL_HPP
#define ONNX_MLPACK_MATCHERS_HARD_SIGMOID_IMPL_HPP
Expand Down
5 changes: 5 additions & 0 deletions include/onnx_mlpack/matchers/hard_sigmoid_multi_op.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
*
* Candidate ONNX subgraphs that can match the HardSigmoid layer when it is
* represented as a series of operations.
*
* The ONNX/mlpack converter is free software; you may redistribute it and/or
* modify it under the terms of the 3-clause BSD license. You should have
* received a copy of the 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause for more information.
*/
#ifndef ONNX_MLPACK_MATCHERS_HARD_SIGMOID_MULTI_OP_HPP
#define ONNX_MLPACK_MATCHERS_HARD_SIGMOID_MULTI_OP_HPP
Expand Down
Loading
Loading