mirror of
https://github.com/ml-explore/mlx.git
synced 2025-11-07 04:38:13 +08:00
Add Primitive::name and remove Primitive::print (#2365)
This commit is contained in:
@@ -14,7 +14,7 @@ namespace mx = mlx::core;
|
||||
namespace nb = nanobind;
|
||||
using namespace nb::literals;
|
||||
|
||||
bool DEPRECATE(const std::string& old_fn, const std::string new_fn) {
|
||||
bool DEPRECATE(const char* old_fn, const char* new_fn) {
|
||||
std::cerr << old_fn << " is deprecated and will be removed in a future "
|
||||
<< "version. Use " << new_fn << " instead." << std::endl;
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user