\n",
1175 | "
needle.backend_ndarray.ndarray.NDArray
def __init__(other, device=None)
/content/needle/python/needle/backend_ndarray/ndarray.pyA generic ND array class that may contain multipe different backends\n",
1178 | "i.e., a Numpy backend, a native CPU backend, or a GPU backend.\n",
1179 | "\n",
1180 | "This class will only contains those functions that you need to implement\n",
1181 | "to actually get the desired functionality for the programming examples\n",
1182 | "in the homework, and no more.\n",
1183 | "\n",
1184 | "For now, for simplicity the class only supports float32 types, though\n",
1185 | "this can be extended if desired.
\n",
1186 | " \n",
1205 | "
"
1206 | ]
1207 | },
1208 | "metadata": {},
1209 | "execution_count": 45
1210 | }
1211 | ]
1212 | },
1213 | {
1214 | "cell_type": "markdown",
1215 | "metadata": {
1216 | "id": "74OUUH2REG18"
1217 | },
1218 | "source": [
1219 | "## Write Standalone Python Test Files\n",
1220 | "\n",
1221 | "Now that we have additional c++/cuda libraries in needle, we will need to type make in order to rebuild the library. Additionally, because the colab environment caches the old library, it is inconvenient to use the ipython cells to debug the updated library.\n",
1222 | "\n",
1223 | "\n"
1224 | ]
1225 | },
1226 | {
1227 | "cell_type": "code",
1228 | "metadata": {
1229 | "colab": {
1230 | "base_uri": "https://localhost:8080/"
1231 | },
1232 | "id": "sgLoV-_KHAM3",
1233 | "outputId": "ae19d49d-faa3-4aa7-cd6f-ed61815cfce6"
1234 | },
1235 | "source": [
1236 | "!make"
1237 | ],
1238 | "execution_count": null,
1239 | "outputs": [
1240 | {
1241 | "output_type": "stream",
1242 | "name": "stdout",
1243 | "text": [
1244 | "\u001b[0mCMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):\n",
1245 | " Compatibility with CMake < 3.5 will be removed from a future version of\n",
1246 | " CMake.\n",
1247 | "\n",
1248 | " Update the VERSION argument