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

Method eval_cpu

mlx/backend/cpu/binary.cpp:17–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15namespace mlx::core {
16
17void Add::eval_cpu(const std::vector<array>& inputs, array& out) {
18 assert(inputs.size() == 2);
19 auto& a = inputs[0];
20 auto& b = inputs[1];
21 binary_op_cpu(a, b, out, detail::Add(), stream());
22}
23
24void DivMod::eval_cpu(
25 const std::vector<array>& inputs,

Callers

nothing calls this directly

Calls 15

binary_op_cpuFunction · 0.85
AddClass · 0.85
get_binary_op_typeFunction · 0.85
comparison_op_cpuFunction · 0.85
binary_float_op_cpuFunction · 0.85
binary_int_op_cpuFunction · 0.85
BitwiseAndClass · 0.85
BitwiseOrClass · 0.85
BitwiseXorClass · 0.85
LeftShiftClass · 0.85
RightShiftClass · 0.85

Tested by

no test coverage detected