Skip to content

Instantly share code, notes, and snippets.

View pranay-ar's full-sized avatar

Pranay Reddy pranay-ar

View GitHub Profile
@pranay-ar
pranay-ar / reference_inference.py
Created April 22, 2026 19:00
Reference ONNX inference snippet for GRID-Cortex ML Systems Engineer take-home
"""
Reference inference snippet for the ML Systems Engineer take-home.
Two ONNX models, loaded with onnxruntime CPU. This file is meant as a starting
reference — it shows:
- how to load each model
- the correct preprocessing for each
- the exact input/output tensor name and shape contract
- how batching works (MobileNetV3 supports it; MiDaS v2.1 does not by default)
@pranay-ar
pranay-ar / PY0101EN-5.2_API_2.ipynb
Created October 12, 2019 13:40
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pranay-ar
pranay-ar / PY0101EN-5.1_Intro_API.ipynb
Created October 12, 2019 13:39
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pranay-ar
pranay-ar / PY0101EN-5-2-Numpy2D.ipynb
Created October 12, 2019 11:52
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pranay-ar
pranay-ar / PY0101EN-5-1-Numpy1D.ipynb
Created October 11, 2019 19:43
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pranay-ar
pranay-ar / PY0101EN-4-2-WriteFile.ipynb
Created October 11, 2019 17:49
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pranay-ar
pranay-ar / PY0101EN-4-1-ReadFile.ipynb
Created October 11, 2019 14:30
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pranay-ar
pranay-ar / PY0101EN-3-4-Classes.ipynb
Created October 11, 2019 10:49
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pranay-ar
pranay-ar / PY0101EN-3-3-Functions.ipynb
Created October 11, 2019 10:24
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.