Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
171
auto add_diff(const std::vector<array>& inputs) {
172
auto a = inputs[0];
173
return std::vector<array>{cos(a) + sin(a)};
174
};
175
176
TEST_CASE(
"test no simplify"
) {
177
set_compile_mode(CompileMode::no_fuse);
Callers
nothing calls this directly
Calls
2
cos
Function · 0.50
sin
Function · 0.50
Tested by
no test coverage detected