harbor run -t openthoughts/tasktrove-exp-rpt-scaffold-v2-scaffold-4330harbor download openthoughts/tasktrove-exp-rpt-scaffold-v2-scaffold-4330Task: Implement the NotImplemented stubs to complete the self-contained RNN benchmarking scaffold
Overview You will implement the missing pieces in the scaffold located under /app/. The goal is to provide a small, deterministic RNN benchmark that runs entirely with the Python standard library, writes deterministic synthetic input, executes two operator variants (BasicLSTMCell forward and a DynamicRNN variant), outputs binary results with precise shapes, logs timings, and offers a simple verification path. Tests (pytest) will exercise these behaviors and validate outputs.
What needs to be implemented (NotImplementedError stubs)
BasicLSTMCell.forward(self, x_t, h_prev, c_prev) -> (h_t, c_t)
DynamicRNN.forward(self, x) -> Tensor3D
generate_deterministic_input(seq_len_, batch_, input_size_, seed=...) -> Tensor3D
save_input_to_bin(path, data) and load_input_from_bin(path)
write_output_to_bin(path, data) and read_output_from_bin(path)
run_basic_lstm_on_input(input_data, lstm_cell) -> (h_out, c_out)
run_dynamic_rnn_on_input(input_data, dynamic_rnn) -> h_out
perform_benchmarks() -> (basic_log_path, dynamic_log_path)
main() -> int
Behavioral expectations and constraints
Files to modify
Testing approach (pytest)
Deliverables