harbor run -t openthoughts/tasktrove-exp-rpt-curriculum-easy-curriculum-easy-0240harbor download openthoughts/tasktrove-exp-rpt-curriculum-easy-curriculum-easy-0240Goal
Create a small, self-contained Python module that provides a class NgraphTest with two simple execution modes (with and without nGraph) and a small random-number helper. The implementation should rely only on numpy and TensorFlow (via the v1 compatibility API) and be importable as from common import NgraphTest.
What to implement
Class: NgraphTest
Method: generate_random_numbers(self, n, low, high)
Method: with_ngraph(self, func)
func that takes a single argument (a TensorFlow session) and returns a value (e.g., the result of sess.run(...)).Method: without_ngraph(self, func)
Example usage (clarity, not to be included in the task description)
Hints to help you implement
Notes