Feedback about Quickstart

オープン
#3,611 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python

調査の方向性

Quickstart ページの Optimizing the Model Parameters セクションから始め、指定された Windows、Python、PyTorch XPU、Intel oneAPI 環境で報告されたエラーを再現してください。チュートリアルの型変換を報告された FloatTensor 回避策と比較し、チュートリアルの修正が必要かどうか、またテスト関数の実行が完了したときにユーザーが何を期待すべきかを文書化してください。

索引モデルが issue の本文から書いたものです。

説明

core module: xpu question windows

There is the following issue on this page: https://docs.pytorch.org/tutorials/beginner/basics/quickstart_tutorial.html#optimizing-the-model-parameters

System specs: Windows 11, python3.11, pytorch==2.8.0+xpu, Intel oneAPI 2025.2.

Been following this tut, I got this error raising from test function

correct += (pred.argmax(1) == y).type(torch.float).sum().item()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: UR error

Checked all the compatibility of oneAPI, pytorch, and intel_extension_for_pytorch

print(torch.xpu._is_compiled())
print(torch.xpu.is_available())

Both prints True

Really new to ML and NN, but not dev, so tried using torch.FloatTensor
correct += (pred.argmax(1) == y).type(torch.FloatTensor).sum().item()
It works and output almost matches to what's given in tut.

I hope what I did is correct in terms of ML.
If not please suggest where can I lookup to understand this better.

cc @albanD @jbschlosser @gujinghui @EikanWang @fengyuan14 @guangyey

主要言語
Python
スター
9.5k
フォーク
4.5k
平均マージ
1日 20時間
マージ済み PR(30日)
2

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pytorch/tutorials のほかの issue

pytorch/tutorials の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。