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

Function add_diff

tests/compile_tests.cpp:171–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171auto add_diff(const std::vector<array>& inputs) {
172 auto a = inputs[0];
173 return std::vector<array>{cos(a) + sin(a)};
174};
175
176TEST_CASE("test no simplify") {
177 set_compile_mode(CompileMode::no_fuse);

Callers

nothing calls this directly

Calls 2

cosFunction · 0.50
sinFunction · 0.50

Tested by

no test coverage detected