Revert "[Kernel] add custom moe ops for prefill" (#4806)
Reverts vllm-project/vllm-ascend#4194 as it broke CI in https://github.com/vllm-project/vllm-ascend/actions/runs/20030369087/job/57437687382?pr=4791 Co-authored-by: wangxiyuan <wangxiyuan1007@gmail.com>
This commit is contained in:
24
csrc/utils.h
24
csrc/utils.h
@@ -28,28 +28,4 @@
|
||||
return PyModule_Create(&module); \
|
||||
}
|
||||
|
||||
class TrochBindException : public std::exception
|
||||
{
|
||||
private:
|
||||
std::string message = {};
|
||||
|
||||
public:
|
||||
explicit TrochBindException(const char *name, const char *file, const int line, const std::string &error)
|
||||
{
|
||||
message = std::string("Failed: ") + name + " error " + file + ":" + std::to_string(line) +
|
||||
" error message or error code is '" + error + "'";
|
||||
}
|
||||
|
||||
const char *what() const noexcept override
|
||||
{
|
||||
return message.c_str();
|
||||
}
|
||||
};
|
||||
|
||||
#define TORCH_BIND_ASSERT(cond) \
|
||||
; \
|
||||
do { \
|
||||
if (not(cond)) { \
|
||||
throw TrochBindException("Assertion", __FILE__, __LINE__, #cond); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
Reference in New Issue
Block a user