Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
96358e41
Commit
96358e41
authored
Nov 14, 2018
by
Paul
Browse files
Rename to migraphx
parent
80203608
Changes
190
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
78 additions
and
78 deletions
+78
-78
src/generate.cpp
src/generate.cpp
+3
-3
src/include/migraphx/argument.hpp
src/include/migraphx/argument.hpp
+5
-5
src/include/migraphx/auto_any_cast.hpp
src/include/migraphx/auto_any_cast.hpp
+3
-3
src/include/migraphx/auto_contiguous.hpp
src/include/migraphx/auto_contiguous.hpp
+4
-4
src/include/migraphx/builtin.hpp
src/include/migraphx/builtin.hpp
+7
-7
src/include/migraphx/check_context.hpp
src/include/migraphx/check_context.hpp
+4
-4
src/include/migraphx/check_shapes.hpp
src/include/migraphx/check_shapes.hpp
+4
-4
src/include/migraphx/common_subexpression_elimination.hpp
src/include/migraphx/common_subexpression_elimination.hpp
+4
-4
src/include/migraphx/concat_opt.hpp
src/include/migraphx/concat_opt.hpp
+5
-5
src/include/migraphx/config.hpp
src/include/migraphx/config.hpp
+2
-2
src/include/migraphx/constant_propagate.hpp
src/include/migraphx/constant_propagate.hpp
+3
-3
src/include/migraphx/context.hpp
src/include/migraphx/context.hpp
+3
-3
src/include/migraphx/dead_code_elimination.hpp
src/include/migraphx/dead_code_elimination.hpp
+4
-4
src/include/migraphx/dfor.hpp
src/include/migraphx/dfor.hpp
+3
-3
src/include/migraphx/eliminate_allocation.hpp
src/include/migraphx/eliminate_allocation.hpp
+4
-4
src/include/migraphx/eliminate_concat.hpp
src/include/migraphx/eliminate_concat.hpp
+5
-5
src/include/migraphx/eliminate_contiguous.hpp
src/include/migraphx/eliminate_contiguous.hpp
+4
-4
src/include/migraphx/env.hpp
src/include/migraphx/env.hpp
+3
-3
src/include/migraphx/erase.hpp
src/include/migraphx/erase.hpp
+3
-3
src/include/migraphx/errors.hpp
src/include/migraphx/errors.hpp
+5
-5
No files found.
src/generate.cpp
View file @
96358e41
#include <migraph/generate.hpp>
#include <migraph
x
/generate.hpp>
namespace
migraph
{
namespace
migraph
x
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
MIGRAPH_INLINE_NS
{
argument
generate_argument
(
shape
s
,
unsigned
long
seed
)
argument
generate_argument
(
shape
s
,
unsigned
long
seed
)
...
@@ -32,4 +32,4 @@ literal abs(literal l)
...
@@ -32,4 +32,4 @@ literal abs(literal l)
}
}
}
// namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
x
src/include/migraph/argument.hpp
→
src/include/migraph
x
/argument.hpp
View file @
96358e41
#ifndef MIGRAPH_GUARD_MIGRAPHLIB_ARGUMENT_HPP
#ifndef MIGRAPH_GUARD_MIGRAPHLIB_ARGUMENT_HPP
#define MIGRAPH_GUARD_MIGRAPHLIB_ARGUMENT_HPP
#define MIGRAPH_GUARD_MIGRAPHLIB_ARGUMENT_HPP
#include <migraph/shape.hpp>
#include <migraph
x
/shape.hpp>
#include <migraph/raw_data.hpp>
#include <migraph
x
/raw_data.hpp>
#include <migraph/config.hpp>
#include <migraph
x
/config.hpp>
#include <functional>
#include <functional>
#include <utility>
#include <utility>
namespace
migraph
{
namespace
migraph
x
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
MIGRAPH_INLINE_NS
{
/**
/**
...
@@ -48,6 +48,6 @@ struct argument : raw_data<argument>
...
@@ -48,6 +48,6 @@ struct argument : raw_data<argument>
};
};
}
// namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
x
#endif
#endif
src/include/migraph/auto_any_cast.hpp
→
src/include/migraph
x
/auto_any_cast.hpp
View file @
96358e41
#ifndef MIGRAPH_GUARD_RTGLIB_AUTO_ANY_CAST_HPP
#ifndef MIGRAPH_GUARD_RTGLIB_AUTO_ANY_CAST_HPP
#define MIGRAPH_GUARD_RTGLIB_AUTO_ANY_CAST_HPP
#define MIGRAPH_GUARD_RTGLIB_AUTO_ANY_CAST_HPP
#include <migraph/config.hpp>
#include <migraph
x
/config.hpp>
namespace
migraph
{
namespace
migraph
x
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
MIGRAPH_INLINE_NS
{
namespace
detail
{
namespace
detail
{
...
@@ -35,6 +35,6 @@ detail::auto_any_caster<T> auto_any_cast(T& x)
...
@@ -35,6 +35,6 @@ detail::auto_any_caster<T> auto_any_cast(T& x)
}
}
}
// namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
x
#endif
#endif
src/include/migraph/auto_contiguous.hpp
→
src/include/migraph
x
/auto_contiguous.hpp
View file @
96358e41
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
#define MIGRAPH_GUARD_RTGLIB_AUTO_CONTIGOUS_HPP
#define MIGRAPH_GUARD_RTGLIB_AUTO_CONTIGOUS_HPP
#include <string>
#include <string>
#include <migraph/instruction_ref.hpp>
#include <migraph
x
/instruction_ref.hpp>
#include <migraph/config.hpp>
#include <migraph
x
/config.hpp>
namespace
migraph
{
namespace
migraph
x
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
MIGRAPH_INLINE_NS
{
struct
program
;
struct
program
;
...
@@ -17,6 +17,6 @@ struct auto_contiguous
...
@@ -17,6 +17,6 @@ struct auto_contiguous
};
};
}
// namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
x
#endif
#endif
src/include/migraph/builtin.hpp
→
src/include/migraph
x
/builtin.hpp
View file @
96358e41
#ifndef MIGRAPH_GUARD_BUILTIN_HPP
#ifndef MIGRAPH_GUARD_BUILTIN_HPP
#define MIGRAPH_GUARD_BUILTIN_HPP
#define MIGRAPH_GUARD_BUILTIN_HPP
#include <migraph/context.hpp>
#include <migraph
x
/context.hpp>
#include <migraph/errors.hpp>
#include <migraph
x
/errors.hpp>
#include <migraph/argument.hpp>
#include <migraph
x
/argument.hpp>
#include <migraph/reflect.hpp>
#include <migraph
x
/reflect.hpp>
#include <migraph/config.hpp>
#include <migraph
x
/config.hpp>
namespace
migraph
{
namespace
migraph
x
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
MIGRAPH_INLINE_NS
{
namespace
builtin
{
namespace
builtin
{
...
@@ -65,6 +65,6 @@ struct param
...
@@ -65,6 +65,6 @@ struct param
}
// namespace builtin
}
// namespace builtin
}
// namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
x
#endif
#endif
src/include/migraph/check_context.hpp
→
src/include/migraph
x
/check_context.hpp
View file @
96358e41
#ifndef MIGRAPH_GUARD_RTGLIB_CHECK_CONTEXT_HPP
#ifndef MIGRAPH_GUARD_RTGLIB_CHECK_CONTEXT_HPP
#define MIGRAPH_GUARD_RTGLIB_CHECK_CONTEXT_HPP
#define MIGRAPH_GUARD_RTGLIB_CHECK_CONTEXT_HPP
#include <migraph/program.hpp>
#include <migraph
x
/program.hpp>
#include <migraph/config.hpp>
#include <migraph
x
/config.hpp>
namespace
migraph
{
namespace
migraph
x
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
MIGRAPH_INLINE_NS
{
template
<
class
T
>
template
<
class
T
>
...
@@ -28,6 +28,6 @@ struct check_context
...
@@ -28,6 +28,6 @@ struct check_context
};
};
}
// namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
x
#endif
#endif
src/include/migraph/check_shapes.hpp
→
src/include/migraph
x
/check_shapes.hpp
View file @
96358e41
#ifndef MIGRAPH_GUARD_RTGLIB_CHECK_SHAPES_HPP
#ifndef MIGRAPH_GUARD_RTGLIB_CHECK_SHAPES_HPP
#define MIGRAPH_GUARD_RTGLIB_CHECK_SHAPES_HPP
#define MIGRAPH_GUARD_RTGLIB_CHECK_SHAPES_HPP
#include <migraph/shape.hpp>
#include <migraph
x
/shape.hpp>
#include <migraph/config.hpp>
#include <migraph
x
/config.hpp>
#include <algorithm>
#include <algorithm>
namespace
migraph
{
namespace
migraph
x
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
MIGRAPH_INLINE_NS
{
struct
check_shapes
struct
check_shapes
...
@@ -157,6 +157,6 @@ struct check_shapes
...
@@ -157,6 +157,6 @@ struct check_shapes
};
};
}
// namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
x
#endif
#endif
src/include/migraph/common_subexpression_elimination.hpp
→
src/include/migraph
x
/common_subexpression_elimination.hpp
View file @
96358e41
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
#define MIGRAPH_GUARD_RTGLIB_COMMON_SUBEXPRESSION_ELIMINATION_HPP
#define MIGRAPH_GUARD_RTGLIB_COMMON_SUBEXPRESSION_ELIMINATION_HPP
#include <string>
#include <string>
#include <migraph/instruction_ref.hpp>
#include <migraph
x
/instruction_ref.hpp>
#include <migraph/config.hpp>
#include <migraph
x
/config.hpp>
namespace
migraph
{
namespace
migraph
x
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
MIGRAPH_INLINE_NS
{
struct
program
;
struct
program
;
...
@@ -20,6 +20,6 @@ struct common_subexpression_elimination
...
@@ -20,6 +20,6 @@ struct common_subexpression_elimination
};
};
}
// namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
x
#endif
#endif
src/include/migraph/concat_opt.hpp
→
src/include/migraph
x
/concat_opt.hpp
View file @
96358e41
...
@@ -8,11 +8,11 @@
...
@@ -8,11 +8,11 @@
#include <type_traits>
#include <type_traits>
#include <utility>
#include <utility>
#include <migraph/operation.hpp>
#include <migraph
x
/operation.hpp>
#include <migraph/operators.hpp>
#include <migraph
x
/operators.hpp>
#include <migraph/config.hpp>
#include <migraph
x
/config.hpp>
namespace
migraph
{
namespace
migraph
x
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
MIGRAPH_INLINE_NS
{
struct
program
;
struct
program
;
...
@@ -236,6 +236,6 @@ inline const ValueType& any_cast(const concat_optimization& x)
...
@@ -236,6 +236,6 @@ inline const ValueType& any_cast(const concat_optimization& x)
#endif
#endif
}
// namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
x
#endif
#endif
src/include/migraph/config.hpp
→
src/include/migraph
x
/config.hpp
View file @
96358e41
#ifndef MIGRAPH_GUARD_CONFIG_HPP
#ifndef MIGRAPH_GUARD_CONFIG_HPP
#define MIGRAPH_GUARD_CONFIG_HPP
#define MIGRAPH_GUARD_CONFIG_HPP
namespace
migraph
{
namespace
migraph
x
{
#if !defined(MIGRAPH_USE_CLANG_TIDY) && !defined(DOXYGEN)
#if !defined(MIGRAPH_USE_CLANG_TIDY) && !defined(DOXYGEN)
#define MIGRAPH_INLINE_NS version_1
#define MIGRAPH_INLINE_NS version_1
#endif
#endif
}
// namespace migraph
}
// namespace migraph
x
#endif
#endif
src/include/migraph/constant_propagate.hpp
→
src/include/migraph
x
/constant_propagate.hpp
View file @
96358e41
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
#define MIGRAPH_GUARD_RTGLIB_CONSTANT_PROPAGATE_HPP
#define MIGRAPH_GUARD_RTGLIB_CONSTANT_PROPAGATE_HPP
#include <string>
#include <string>
#include <migraph/config.hpp>
#include <migraph
x
/config.hpp>
namespace
migraph
{
namespace
migraph
x
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
MIGRAPH_INLINE_NS
{
struct
program
;
struct
program
;
...
@@ -19,6 +19,6 @@ struct constant_propagate
...
@@ -19,6 +19,6 @@ struct constant_propagate
};
};
}
// namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
x
#endif
#endif
src/include/migraph/context.hpp
→
src/include/migraph
x
/context.hpp
View file @
96358e41
...
@@ -7,9 +7,9 @@
...
@@ -7,9 +7,9 @@
#include <memory>
#include <memory>
#include <type_traits>
#include <type_traits>
#include <utility>
#include <utility>
#include <migraph/config.hpp>
#include <migraph
x
/config.hpp>
namespace
migraph
{
namespace
migraph
x
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
MIGRAPH_INLINE_NS
{
#ifdef DOXYGEN
#ifdef DOXYGEN
...
@@ -206,6 +206,6 @@ inline const ValueType& any_cast(const context& x)
...
@@ -206,6 +206,6 @@ inline const ValueType& any_cast(const context& x)
#endif
#endif
}
// namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
x
#endif
#endif
src/include/migraph/dead_code_elimination.hpp
→
src/include/migraph
x
/dead_code_elimination.hpp
View file @
96358e41
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
#define MIGRAPH_GUARD_RTGLIB_DEAD_CODE_ELIMINATION_HPP
#define MIGRAPH_GUARD_RTGLIB_DEAD_CODE_ELIMINATION_HPP
#include <string>
#include <string>
#include <migraph/instruction_ref.hpp>
#include <migraph
x
/instruction_ref.hpp>
#include <migraph/config.hpp>
#include <migraph
x
/config.hpp>
namespace
migraph
{
namespace
migraph
x
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
MIGRAPH_INLINE_NS
{
struct
program
;
struct
program
;
...
@@ -20,6 +20,6 @@ struct dead_code_elimination
...
@@ -20,6 +20,6 @@ struct dead_code_elimination
};
};
}
// namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
x
#endif
#endif
src/include/migraph/dfor.hpp
→
src/include/migraph
x
/dfor.hpp
View file @
96358e41
#ifndef MIGRAPH_GUARD_MIGRAPHLIB_DFOR_HPP
#ifndef MIGRAPH_GUARD_MIGRAPHLIB_DFOR_HPP
#define MIGRAPH_GUARD_MIGRAPHLIB_DFOR_HPP
#define MIGRAPH_GUARD_MIGRAPHLIB_DFOR_HPP
#include <migraph/config.hpp>
#include <migraph
x
/config.hpp>
namespace
migraph
{
namespace
migraph
x
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
MIGRAPH_INLINE_NS
{
// Multidimensional for loop
// Multidimensional for loop
...
@@ -24,6 +24,6 @@ auto dfor(T x, Ts... xs)
...
@@ -24,6 +24,6 @@ auto dfor(T x, Ts... xs)
}
}
}
// namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
x
#endif
#endif
src/include/migraph/eliminate_allocation.hpp
→
src/include/migraph
x
/eliminate_allocation.hpp
View file @
96358e41
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
#define MIGRAPH_GUARD_RTGLIB_ELIMINATE_ALLOCATION_HPP
#define MIGRAPH_GUARD_RTGLIB_ELIMINATE_ALLOCATION_HPP
#include <string>
#include <string>
#include <migraph/instruction_ref.hpp>
#include <migraph
x
/instruction_ref.hpp>
#include <migraph/config.hpp>
#include <migraph
x
/config.hpp>
namespace
migraph
{
namespace
migraph
x
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
MIGRAPH_INLINE_NS
{
struct
program
;
struct
program
;
...
@@ -23,6 +23,6 @@ struct eliminate_allocation
...
@@ -23,6 +23,6 @@ struct eliminate_allocation
};
};
}
// namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
x
#endif
#endif
src/include/migraph/eliminate_concat.hpp
→
src/include/migraph
x
/eliminate_concat.hpp
View file @
96358e41
...
@@ -2,11 +2,11 @@
...
@@ -2,11 +2,11 @@
#define MIGRAPH_GUARD_RTGLIB_ELIMINATE_CONCAT_HPP
#define MIGRAPH_GUARD_RTGLIB_ELIMINATE_CONCAT_HPP
#include <string>
#include <string>
#include <migraph/instruction_ref.hpp>
#include <migraph
x
/instruction_ref.hpp>
#include <migraph/concat_opt.hpp>
#include <migraph
x
/concat_opt.hpp>
#include <migraph/config.hpp>
#include <migraph
x
/config.hpp>
namespace
migraph
{
namespace
migraph
x
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
MIGRAPH_INLINE_NS
{
struct
program
;
struct
program
;
...
@@ -22,6 +22,6 @@ struct eliminate_concat
...
@@ -22,6 +22,6 @@ struct eliminate_concat
};
};
}
// namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
x
#endif
#endif
src/include/migraph/eliminate_contiguous.hpp
→
src/include/migraph
x
/eliminate_contiguous.hpp
View file @
96358e41
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
#define MIGRAPH_GUARD_RTGLIB_ELIMINATE_CONTIGUOUS_HPP
#define MIGRAPH_GUARD_RTGLIB_ELIMINATE_CONTIGUOUS_HPP
#include <string>
#include <string>
#include <migraph/instruction_ref.hpp>
#include <migraph
x
/instruction_ref.hpp>
#include <migraph/config.hpp>
#include <migraph
x
/config.hpp>
namespace
migraph
{
namespace
migraph
x
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
MIGRAPH_INLINE_NS
{
struct
program
;
struct
program
;
...
@@ -20,6 +20,6 @@ struct eliminate_contiguous
...
@@ -20,6 +20,6 @@ struct eliminate_contiguous
};
};
}
// namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
x
#endif
#endif
src/include/migraph/env.hpp
→
src/include/migraph
x
/env.hpp
View file @
96358e41
...
@@ -3,9 +3,9 @@
...
@@ -3,9 +3,9 @@
#include <vector>
#include <vector>
#include <string>
#include <string>
#include <migraph/config.hpp>
#include <migraph
x
/config.hpp>
namespace
migraph
{
namespace
migraph
x
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
MIGRAPH_INLINE_NS
{
// Declare a cached environment variable
// Declare a cached environment variable
...
@@ -34,6 +34,6 @@ bool disabled(T)
...
@@ -34,6 +34,6 @@ bool disabled(T)
}
}
}
// namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
x
#endif
#endif
src/include/migraph/erase.hpp
→
src/include/migraph
x
/erase.hpp
View file @
96358e41
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
#define MIGRAPH_GUARD_ERASE_HPP
#define MIGRAPH_GUARD_ERASE_HPP
#include <algorithm>
#include <algorithm>
#include <migraph/config.hpp>
#include <migraph
x
/config.hpp>
namespace
migraph
{
namespace
migraph
x
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
MIGRAPH_INLINE_NS
{
/**
/**
...
@@ -34,6 +34,6 @@ auto erase_if(R&& r, P&& pred)
...
@@ -34,6 +34,6 @@ auto erase_if(R&& r, P&& pred)
}
}
}
// namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
x
#endif
#endif
src/include/migraph/errors.hpp
→
src/include/migraph
x
/errors.hpp
View file @
96358e41
...
@@ -4,12 +4,12 @@
...
@@ -4,12 +4,12 @@
#include <exception>
#include <exception>
#include <stdexcept>
#include <stdexcept>
#include <string>
#include <string>
#include <migraph/config.hpp>
#include <migraph
x
/config.hpp>
namespace
migraph
{
namespace
migraph
x
{
inline
namespace
MIGRAPH_INLINE_NS
{
inline
namespace
MIGRAPH_INLINE_NS
{
/// Represents exceptions that can be thrown by migraphlib
/// Represents exceptions that can be thrown by migraph
x
lib
struct
exception
:
std
::
runtime_error
struct
exception
:
std
::
runtime_error
{
{
exception
(
const
std
::
string
&
msg
=
""
)
:
std
::
runtime_error
(
msg
)
{}
exception
(
const
std
::
string
&
msg
=
""
)
:
std
::
runtime_error
(
msg
)
{}
...
@@ -44,9 +44,9 @@ inline std::string make_source_context(const std::string& file, int line)
...
@@ -44,9 +44,9 @@ inline std::string make_source_context(const std::string& file, int line)
* @brief Throw an exception with context information
* @brief Throw an exception with context information
*/
*/
#define MIGRAPH_THROW(...) \
#define MIGRAPH_THROW(...) \
throw migraph::make_exception(migraph::make_source_context(__FILE__, __LINE__), __VA_ARGS__)
throw migraph
x
::make_exception(migraph
x
::make_source_context(__FILE__, __LINE__), __VA_ARGS__)
}
// namespace MIGRAPH_INLINE_NS
}
// namespace MIGRAPH_INLINE_NS
}
// namespace migraph
}
// namespace migraph
x
#endif
#endif
Prev
1
2
3
4
5
6
…
10
Next
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