.globl classify
.text
classify:
# =====================================
# COMMAND LINE ARGUMENTS
# =====================================
# Args:
# a0 (int) argc
# a1 (char**) argv
# a2 (int) print_classification, if this is zero,
# you should print the classification. Otherwise,
# this function should not print ANYTHING.
# Returns:
# a0 (int) Classification
#
# If there are an incorrect number of command line args,
# this function returns with exit code 49.
#
# Usage:
# main.s -m -1
# =====================================
# LOAD MATRICES
# =====================================
# Load pretrained m0
# Load pretrained m1
# Load input matrix
# =====================================
# RUN LAYERS
# =====================================
# 1. LINEAR LAYER: m0 * input
# 2. NONLINEAR LAYER: ReLU(m0 * input)
# 3. LINEAR LAYER: m1 * ReLU(m0 * input)
# =====================================
# WRITE OUTPUT
# =====================================
# Write output matrix
# =====================================
# CALCULATE CLASSIFICATION/LABEL
# =====================================
# Call argmax
# Print classification
# Print newline afterwards for clarity
ret