Interactive JShell and Block Runner for DJL¶
We did some pre-configuration for each JShell as follows:
import ai.djl.ndarray.NDManager; import ai.djl.ndarray.NDArray; import ai.djl.ndarray.types.Shape; import ai.djl.ndarray.index.NDIndex; NDManager manager = NDManager.newBaseManager();
Currently, this console only offers limited operations like: - backspace to remove content - left and right arrow to move cursor - copy/paste option to paste to command line - clear keyword to clear the screen
The backend also host a block runner which allows you to write Java like python script:
Users can use varies of engines(MXNet, PyTorch and TensorFlow).