MCPcopy Create free account
hub / github.com/ml-explore/mlx / DEPRECATE

Function DEPRECATE

python/src/metal.cpp:20–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18using namespace nb::literals;
19
20bool DEPRECATE(const char* old_fn, const char* new_fn) {
21 std::cerr << old_fn << " is deprecated and will be removed in a future "
22 << "version. Use " << new_fn << " instead." << std::endl;
23 return true;
24}
25
26#define DEPRECATE(oldfn, newfn) static bool dep = DEPRECATE(oldfn, newfn)
27

Callers 1

init_metalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected