Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
902 changes: 902 additions & 0 deletions backends/mlx/_generated_inspector.py

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions backends/mlx/runtime/MLXInterpreter.h
Original file line number Diff line number Diff line change
Expand Up @@ -1395,6 +1395,12 @@ exec_logical_or(const LogicalOrNode& n, ExecutionState& st, StreamOrDevice s) {
n.out, logical_or(st.const_tensor_ref(n.a), st.const_tensor_ref(n.b), s));
}

inline void
exec_bitwise_or(const BitwiseOrNode& n, ExecutionState& st, StreamOrDevice s) {
st.set_tensor(
n.out, bitwise_or(st.const_tensor_ref(n.a), st.const_tensor_ref(n.b), s));
}

inline void exec_tri(const TriNode& n, ExecutionState& st, StreamOrDevice s) {
int rows = resolve_int(n.n, st);
int cols = resolve_int(n.m, st);
Expand Down Expand Up @@ -2034,6 +2040,9 @@ class Interpreter {
case OpCode::LOGICAL_OR:
ops::exec_logical_or(std::get<LogicalOrNode>(instr.node), st, s);
break;
case OpCode::BITWISE_OR:
ops::exec_bitwise_or(std::get<BitwiseOrNode>(instr.node), st, s);
break;
case OpCode::TRI:
ops::exec_tri(std::get<TriNode>(instr.node), st, s);
break;
Expand Down
Loading
Loading