Skip to content

Translation/beginner_source/introyt/tensors_deeper_tutorial.py translation - #760

Merged
hyoyoung merged 117 commits into
PyTorchKR:masterfrom
falconlee236:translation/beginner_source-introyt-tensors_deeper_tutorial.py-translation-#736
Nov 26, 2023
Merged

hyoyoung merged 117 commits into
PyTorchKR:masterfrom
falconlee236:translation/beginner_source-introyt-tensors_deeper_tutorial.py-translation-#736

Conversation

@falconlee236

Copy link
Copy Markdown
Contributor

๋ผ์ด์„ ์Šค ๋™์˜

๋ณ€๊ฒฝํ•ด์ฃผ์‹œ๋Š” ๋‚ด์šฉ์— BSD 3ํ•ญ ๋ผ์ด์„ ์Šค๊ฐ€ ์ ์šฉ๋จ์„ ๋™์˜ํ•ด์ฃผ์…”์•ผ ํ•ฉ๋‹ˆ๋‹ค.

๋” ์ž์„ธํ•œ ๋‚ด์šฉ์€ ๊ธฐ์—ฌํ•˜๊ธฐ ๋ฌธ์„œ๋ฅผ ์ฐธ๊ณ ํ•ด์ฃผ์„ธ์š”.

๋™์˜ํ•˜์‹œ๋ฉด ์•„๋ž˜ [ ]๋ฅผ [x]๋กœ ๋งŒ๋“ค์–ด์ฃผ์„ธ์š”.

  • ๊ธฐ์—ฌํ•˜๊ธฐ ๋ฌธ์„œ๋ฅผ ํ™•์ธํ•˜์˜€์œผ๋ฉฐ, ๋ณธ PR ๋‚ด์šฉ์— BSD 3ํ•ญ ๋ผ์ด์„ ์Šค๊ฐ€ ์ ์šฉ๋จ์— ๋™์˜ํ•ฉ๋‹ˆ๋‹ค.

๊ด€๋ จ ์ด์Šˆ ๋ฒˆํ˜ธ

์ด Pull Request์™€ ๊ด€๋ จ์žˆ๋Š” ์ด์Šˆ ๋ฒˆํ˜ธ๋ฅผ ์ ์–ด์ฃผ์„ธ์š”.

์ด์Šˆ ๋˜๋Š” PR ๋ฒˆํ˜ธ ์•ž์— #์„ ๋ถ™์ด์‹œ๋ฉด ์ œ๋ชฉ์„ ๋ฐ”๋กœ ํ™•์ธํ•˜์‹ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. (์˜ˆ. #999 )

PR ์ข…๋ฅ˜

์ด PR์— ํ•ด๋‹น๋˜๋Š” ์ข…๋ฅ˜ ์•ž์˜ [ ]์„ [x]๋กœ ๋ณ€๊ฒฝํ•ด์ฃผ์„ธ์š”.

  • ์˜คํƒˆ์ž๋ฅผ ์ˆ˜์ •ํ•˜๊ฑฐ๋‚˜ ๋ฒˆ์—ญ์„ ๊ฐœ์„ ํ•˜๋Š” ๊ธฐ์—ฌ
  • ๋ฒˆ์—ญ๋˜์ง€ ์•Š์€ ํŠœํ† ๋ฆฌ์–ผ์„ ๋ฒˆ์—ญํ•˜๋Š” ๊ธฐ์—ฌ
  • ๊ณต์‹ ํŠœํ† ๋ฆฌ์–ผ ๋‚ด์šฉ์„ ๋ฐ˜์˜ํ•˜๋Š” ๊ธฐ์—ฌ
  • ์œ„ ์ข…๋ฅ˜์— ํฌํ•จ๋˜์ง€ ์•Š๋Š” ๊ธฐ์—ฌ

PR ์„ค๋ช…

์ด PR๋กœ ๋ฌด์—‡์ด ๋‹ฌ๋ผ์ง€๋Š”์ง€ ๋Œ€๋žต์ ์œผ๋กœ ์•Œ๋ ค์ฃผ์„ธ์š”.
beginner_source/introyt/tensors_deeper_tutorial.py ์œ„์น˜์— ์žˆ๋Š” ํŒŒ์ผ์„ ๋ฒˆ์—ญํ–ˆ์Šต๋‹ˆ๋‹ค.
์ œ๊ฐ€ ๋ชป์žก์€ ์˜คํƒ€๋‚˜ ์ˆ˜์ •ํ•  ์‚ฌํ•ญ ์žˆ์œผ๋ฉด ์–ธ์ œ๋“  ํ™˜์˜์ž…๋‹ˆ๋‹ค.

โ€ฆranslation in ์‹ค์ˆ˜ ๋ถ€๋™ ์ž๋ฃŒํ˜• to ์‹ค์ˆ˜ ์ž๋ฃŒํ˜•
Comment thread beginner_source/introyt/tensors_deeper_tutorial.py

@ganghe74 ganghe74 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๋ฌธ์„œ ์–‘์ด ๊ฝค ๋ฐฉ๋Œ€ํ•˜๋„ค์š”. ๊ณ ์ƒ ๋งŽ์œผ์…จ์Šต๋‹ˆ๋‹ค !
๋ฌธ์„œ ์ „๋ฐ˜์ ์œผ๋กœ PyTorch ๊ฐ€ Pytorch๋กœ ํ‘œ๊ธฐ๋˜์–ด ์žˆ๋Š”๋ฐ, ์ด ๋ถ€๋ถ„๋งŒ ์ˆ˜์ •ํ•˜๋ฉด ๋ณ‘ํ•ฉํ•ด๋„ ๊ดœ์ฐฎ์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

๋‚˜๋จธ์ง€๋Š” ์ œ ๊ฐœ์ธ์ ์ธ ์˜๊ฒฌ์ด๋‹ˆ ์ฐธ๊ณ ํ•ด์ฃผ์„ธ์š” ใ…Žใ…Ž..

Comment thread beginner_source/introyt/tensors_deeper_tutorial.py Outdated
Comment thread beginner_source/introyt/tensors_deeper_tutorial.py Outdated
Comment thread beginner_source/introyt/tensors_deeper_tutorial.py
# - ``torch.bfloat``
#
# Math & Logic with PyTorch Tensors
# Pytorch Tensor์—์„œ ์‚ฐ์ˆ  & ๋…ผ๋ฆฌ ์—ฐ์‚ฐ

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Math ๋ฅผ ์‚ฐ์ˆ  ๋กœ ๋ฒˆ์—ญํ•˜๋Š” ๊ฒƒ์— ๋Œ€ํ•ด ๋‹ค๋ฅธ ๋ถ„๋“ค์€ ์–ด๋–ป๊ฒŒ ์ƒ๊ฐํ•˜์‹œ๋‚˜์š” ??

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ˆ˜ํ•™๊ณผ ๋…ผ๋ฆฌ์—ฐ์‚ฐ๋ณด๋‹ค๋Š” ์ €๋Š” ์‚ฐ์ˆ  ๋…ผ๋ฆฌ ์—ฐ์‚ฐ์ด๋ผ๋Š” ํ‘œํ˜„์ด ๋” ์ž˜ ์–ด์šธ๋ฆฐ๋‹ค๊ณ  ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค

Comment thread beginner_source/introyt/tensors_deeper_tutorial.py Outdated
Comment thread beginner_source/introyt/tensors_deeper_tutorial.py Outdated
Comment thread beginner_source/introyt/tensors_deeper_tutorial.py Outdated
Comment thread beginner_source/introyt/tensors_deeper_tutorial.py Outdated

@ganghe74 ganghe74 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๊ณ ์ƒํ•˜์…จ์Šต๋‹ˆ๋‹ค!

@hyoyoung hyoyoung left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๊ธด ๋ฌธ์„œ ๋ฒˆ์—ญํ•˜๋А๋ผ ์ˆ˜๊ณ ํ•˜์…จ์Šต๋‹ˆ๋‹ค
์ „๋ฐ˜์ ์œผ๋กœ ์ž˜๋˜์–ด์žˆ๊ณ , ์‚ฌ์†Œํ•œ ์ˆ˜์ •์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค

Pytorch Tensor ์†Œ๊ฐœ
===============================
๋ฒˆ์—ญ:
`์ด์ƒ์œค <https://github.com/falconlee236>`_

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๋ฒˆ์—ญ๊ณผ ์ €์ž ์ด๋ฆ„์€ ๋‹ค๋ฅธ ํŽ˜์ด์ง€ ์ฒ˜๋Ÿผ ํ•œ์ค„๋กœ ๋ถ™์—ฌ์„œ ์จ์ฃผ์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ˆ˜์ • ์™„๋ฃŒํ–ˆ์Šต๋‹ˆ๋‹ค!

# ``torch`` module provides factory methods for all of these:
# ๋ฐฉ๊ธˆ ๋ฌด์—‡์„ ํ•œ ๊ฒƒ์ธ์ง€ ๋“ค์—ฌ๋‹ค๋ด…์‹œ๋‹ค:
#
# - ``torch`` ๋ชจ๋“ˆ์— ์žˆ๋Š” ์ˆ˜๋งŽ์€ ๋ฉ”์†Œ๋“œ ์ค‘ ํ•˜๋‚˜๋ฅผ ์‚ฌ์šฉํ•ด์„œ tesnor๋ฅผ ๋งŒ๋“ค์—ˆ์Šต๋‹ˆ๋‹ค.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tesnor๋Š” ์ค‘๊ฐ„์— ์˜คํƒ€๊ฐ€ ๋‚œ๊ฑฐ ๊ฐ™์Šต๋‹ˆ๋‹ค

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ˆ˜์ • ์™„๋ฃŒํ–ˆ์Šต๋‹ˆ๋‹ค!

# The factory methods all do just what youโ€™d expect - we have a tensor
# full of zeros, another full of ones, and another with random values
# between 0 and 1.
# ์ด ๋ฉ”์†Œ๋“œ๋“ค์€ ์šฐ๋ฆฌ๊ฐ€ ๊ธฐ๋Œ€ํ•˜๋˜ ๊ฒƒ๋“ค์„ ๋ชจ๋‘ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค - 0์œผ๋กœ ๋ชจ๋‘ ์ฑ„์›Œ ์ง„ tensor,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ํŒฉํ† ๋ฆฌ ๋ฉ”์†Œ๋“œ๋ผ๊ณ  factory ์˜๋ฏธ๋ฅผ ์‚ด๋ ค์„œ ๋„ฃ์–ด์ฃผ๋Š”๊ฑด ์–ด๋–จ๊นŒ์š”?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์‚ฌ์‹ค ํŒฉํ† ๋ฆฌ ๋ฉ”์†Œ๋“œ๊ฐ€ ๋ฌด์—‡์ธ์ง€ ์ž˜ ๋ชฐ๋ผ์„œ ์ ์ง€ ์•Š์•˜๋Š”๋ฐ, ์ผ๋‹จ ์›๋ฌธ ์˜๋ฏธ๋ฅผ ์‚ด๋ ค์„œ ๋ฒˆ์—ญํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค

# each dimension of a tensor - in our case, ``x`` is a three-dimensional
# tensor with shape 2 x 2 x 3.
# ์œ„์ชฝ์˜ ์ฝ”๋“œ ์…€์— ์žˆ๋Š” ๊ฒƒ๋“ค ์ค‘์— ์ฒซ ๋ฒˆ์งธ๋Š” tensor์— ์žˆ๋Š” ``.shape`` ์†์„ฑ์„ ์‚ฌ์šฉํ–ˆ์Šต๋‹ˆ๋‹ค.
# ์ด ์†์„ฑ์€ tesnor์˜ ๊ฐ ์ฐจ์› ํฌ๊ธฐ์— ๋Œ€ํ•œ ๋ฆฌ์ŠคํŠธ๋ฅผ ํฌํ•จํ•ฉ๋‹ˆ๋‹ค

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tensor์˜ ์˜คํƒ€์ธ๋“ฏํ•ฉ๋‹ˆ๋‹ค

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ˆ˜์ • ์™„๋ฃŒํ–ˆ์Šต๋‹ˆ๋‹ค!

@hyoyoung hyoyoung left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good

@hyoyoung
hyoyoung merged commit e215e4c into PyTorchKR:master Nov 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants