Skip to content

Commit

Permalink
namespace
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Chu <justinchu@microsoft.com>
  • Loading branch information
justinchuby committed Aug 22, 2023
1 parent dba3f96 commit b9895a0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
9 changes: 6 additions & 3 deletions onnx/defs/math/utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
#include "onnx/defs/tensor_proto_util.h"

namespace ONNX_NAMESPACE {
namespace defs::math::utils {
namespace defs {
namespace math {
namespace utils {
template <typename T>
T GetScalarValueFromTensor(const ONNX_NAMESPACE::TensorProto* t) {
if (t == nullptr) {
Expand Down Expand Up @@ -92,6 +94,7 @@ from the back. Accepted range is [-r, r-1] where r = rank(input).
});
};
}
} // namespace defs::math::utils

} // namespace utils
} // namespace math
} // namespace defs
} // namespace ONNX_NAMESPACE
8 changes: 6 additions & 2 deletions onnx/defs/math/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@
#include "onnx/defs/schema.h"

namespace ONNX_NAMESPACE {
namespace defs::math::utils {
namespace defs {
namespace math {
namespace utils {
template <typename T>
T GetScalarValueFromTensor(const ONNX_NAMESPACE::TensorProto* t);

std::function<void(OpSchema&)>
SoftmaxFamilyDocGenerator(const char* name, const char* description, const char* equation);
} // namespace defs::math::utils
} // namespace utils
} // namespace math
} // namespace defs
} // namespace ONNX_NAMESPACE

0 comments on commit b9895a0

Please sign in to comment.