nn/test.ipynb
2026-03-12 15:50:33 +08:00

94 lines
2 KiB
Text

{
"cells": [
{
"cell_type": "code",
"id": "initial_id",
"metadata": {
"collapsed": true,
"ExecuteTime": {
"end_time": "2026-03-12T07:47:43.647984080Z",
"start_time": "2026-03-12T07:47:42.201741749Z"
}
},
"source": [
"import torch\n",
"import numpy\n",
"import pandas\n",
"\n"
],
"outputs": [],
"execution_count": 4
},
{
"metadata": {
"ExecuteTime": {
"end_time": "2026-03-12T07:48:05.008880758Z",
"start_time": "2026-03-12T07:48:04.943146770Z"
}
},
"cell_type": "code",
"source": "torch.randn(3,4,2)",
"id": "3e141a42d342fa96",
"outputs": [
{
"data": {
"text/plain": [
"tensor([[[ 0.2132, 0.9767],\n",
" [-1.0454, 0.1760],\n",
" [ 1.1094, -1.8272],\n",
" [ 0.3191, 0.6993]],\n",
"\n",
" [[ 0.1007, 2.2675],\n",
" [-0.3900, 0.5697],\n",
" [ 0.8869, 0.9942],\n",
" [ 0.5918, -0.1472]],\n",
"\n",
" [[-0.8392, 0.5961],\n",
" [ 0.7128, -0.3702],\n",
" [-0.8278, 0.6045],\n",
" [ 0.2568, -0.2580]]])"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": 6
},
{
"metadata": {
"ExecuteTime": {
"end_time": "2026-03-12T07:47:43.874354756Z",
"start_time": "2026-03-12T07:47:43.725800097Z"
}
},
"cell_type": "code",
"source": "",
"id": "8ae20ae68abbf32f",
"outputs": [],
"execution_count": 5
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.6"
}
},
"nbformat": 4,
"nbformat_minor": 5
}