커피 한잔 사주세요😄
*메모:
- 내 게시물에 add()에 대한 설명이 나와 있습니다.
- 내 게시물은 sub()를 설명합니다.
- 내 게시물에는 mul()에 대한 설명이 나와 있습니다.
- 내 게시물에서는 div()에 대해 설명합니다.
- 내 게시물에서는 fmod()에 대해 설명합니다.
remainder()는 0개 이상의 요소로 구성된 0D 이상의 D 텐서 또는 0개 이상의 요소로 구성된 0D 이상의 D 텐서 중 두 개와 스칼라를 사용하여 Python 모듈러스 연산의 모듈러스(mod) 계산을 수행하여 다음을 얻을 수 있습니다. 아래와 같이 0개 이상의 요소로 구성된 0D 이상의 D 텐서:
*메모:
- 나머지()는 토치나 텐서와 함께 사용할 수 있습니다.
- 토치(유형: 텐서 또는 int 또는 float의 스칼라) 또는 텐서(유형: int 또는 float의 텐서)를 사용하는 첫 번째 인수(입력)(필수). *토치는 입력= 없이 스칼라를 사용해야 합니다.
- torch의 두 번째 인수 또는 텐서의 첫 번째 인수는 other(필수 유형: 텐서 또는 int 또는 float의 스칼라)입니다.
- 토치에 out 인수가 있습니다(Optional-Default:None-Type:tensor):
*메모:
- out=을 사용해야 합니다.
- 내 게시물이 주장을 설명합니다.
- 0(int)을 기타로 설정하면 ZeroDivisionError가 발생합니다.
- 스칼라(입력)와 스칼라(기타)의 조합은 사용할 수 없습니다.
- 결과는 다른 것과 동일한 부호를 가집니다.
import torch tensor1 = torch.tensor([9, 7, 6]) tensor2 = torch.tensor([[4, -4, 3], [-2, 5, -5]]) torch.remainder(input=tensor1, other=tensor2) tensor1.remainder(other=tensor2) # tensor([[1, -1, 0], [-1, 2, -4]]) torch.remainder(9, other=tensor2) # tensor([[1, -3, 0], [-1, 4, -1]]) torch.remainder(input=tensor1, other=4) # tensor([1, 3, 2]) tensor1 = torch.tensor([-9, -7, -6]) tensor2 = torch.tensor([[4, -4, 3], [-2, 5, -5]]) torch.remainder(input=tensor1, other=tensor2) # tensor([[3, -3, 0], torch.remainder(-9, other=tensor2) # tensor([[3, -1, 0], [-1, 1, -4]]) torch.remainder(input=tensor1, other=4) # tensor([3, 1, 2]) tensor1 = torch.tensor([9.75, 7.08, 6.26]) tensor2 = torch.tensor([[4.26, -4.54, 3.37], [-2.16, 5.43, -5.98]]) torch.remainder(input=tensor1, other=tensor2) # tensor([[1.2300, -2.0000, 2.8900], # [-1.0500, 1.6500, -5.7000]]) torch.remainder(9.75, other=tensor2) # tensor([[1.2300, -3.8700, 3.0100], [-1.0500, 4.3200, -2.2100]]) torch.remainder(input=tensor1, other=4.26) # tensor([1.2300, 2.8200, 2.0000])
위 내용은 PyTorch의 나머지의 상세 내용입니다. 자세한 내용은 PHP 중국어 웹사이트의 기타 관련 기사를 참조하세요!

slicepaythonlistisdoneusingthesyntaxlist [start : step : step] .here'showitworks : 1) startistheindexofthefirstelementtoinclude.2) stopistheindexofthefirstelemement.3) stepisincrementbetwetweentractionsoftortionsoflists

NumpyAllowsForVariousOperationsOnArrays : 1) BasicArithmeticLikeadDition, Subtraction, A 및 Division; 2) AdvancedOperationsSuchasmatrixmultiplication; 3) extrayintondsfordatamanipulation; 5) Ag

Arraysinpython, 특히 Stroughnumpyandpandas, areestentialfordataanalysis, setingspeedandefficiency

ListSandnumpyArraysInpythonHavedifferentmoryfootPrints : ListSaremoreFlexibleButlessMemory-Efficer, whilumpyArraySareOptimizedFornumericalData.1) ListSTorERENFERENCESTOOBJECTS, OverHeadAround64ByTeson64-BitSyStems.2) NumpyArraysTATACONTACOTIGUOU

ToensurePythonScriptTscriptsBecorrectelyRossDevelopment, Staging and Production, UsethesEStrategies : 1) EnvironmberVariblesForsimplesettings, 2) ConfigurationFilesforcomplexSetups 및 3) DynamicLoadingForAdAptability

Python List 슬라이싱의 기본 구문은 목록 [start : stop : step]입니다. 1. Start는 첫 번째 요소 인덱스, 2.Stop은 첫 번째 요소 인덱스가 제외되고 3. Step은 요소 사이의 단계 크기를 결정합니다. 슬라이스는 데이터를 추출하는 데 사용될뿐만 아니라 목록을 수정하고 반전시키는 데 사용됩니다.

ListSoutPerformArraysin : 1) DynamicsizingandFrequentInsertions/Deletions, 2) StoringHeterogeneousData 및 3) MemoryEfficiencyForsParsEdata, butMayHavesLightPerformanceCosceperationOperations.

TOCONVERTAPYTHONARRAYTOALIST, USETHELIST () CONSTUCTORORAGENERATERATOREXPRESSION.1) importTheArrayModuleAndCreateAnarray.2) USELIST (ARR) 또는 [XFORXINARR] TOCONVERTITTOALIST.


핫 AI 도구

Undresser.AI Undress
사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover
사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool
무료로 이미지를 벗다

Clothoff.io
AI 옷 제거제

Video Face Swap
완전히 무료인 AI 얼굴 교환 도구를 사용하여 모든 비디오의 얼굴을 쉽게 바꾸세요!

인기 기사

뜨거운 도구

스튜디오 13.0.1 보내기
강력한 PHP 통합 개발 환경

맨티스BT
Mantis는 제품 결함 추적을 돕기 위해 설계된 배포하기 쉬운 웹 기반 결함 추적 도구입니다. PHP, MySQL 및 웹 서버가 필요합니다. 데모 및 호스팅 서비스를 확인해 보세요.

SublimeText3 중국어 버전
중국어 버전, 사용하기 매우 쉽습니다.

SublimeText3 Linux 새 버전
SublimeText3 Linux 최신 버전

SecList
SecLists는 최고의 보안 테스터의 동반자입니다. 보안 평가 시 자주 사용되는 다양한 유형의 목록을 한 곳에 모아 놓은 것입니다. SecLists는 보안 테스터에게 필요할 수 있는 모든 목록을 편리하게 제공하여 보안 테스트를 더욱 효율적이고 생산적으로 만드는 데 도움이 됩니다. 목록 유형에는 사용자 이름, 비밀번호, URL, 퍼징 페이로드, 민감한 데이터 패턴, 웹 셸 등이 포함됩니다. 테스터는 이 저장소를 새로운 테스트 시스템으로 간단히 가져올 수 있으며 필요한 모든 유형의 목록에 액세스할 수 있습니다.
