- Apr 2021
-
statisticsplaybook.github.io statisticsplaybook.github.io
-
3.1 GPU 사용 가능 체크
여기서 FALSE가 발생하는 경우가 있습니다. 이 경우에 gpu tensor가 작동하지 않는데 GPU의 cuda version 호환에서 문제가 발생하는 것으로 알고 있습니다. 많은 곳에서 10.1, 10.2 version을 사용하기 때문에 저도 해당 버전을 깔아보았습니다. 하지만 cuda를 다시 깔고 라이브러리를 불러와도 여전히 FALSE가 뜨는 것을 볼수 있죠. 아래 코드를 입력해보시기 바랍니다. 1번째 코드는 당연히 본인의 쿠다 버전이 설치된 장소로 지정해주어야 합니다. 2번째 코드에서 에러코드가 발생할 수 있습니다만 패키지를 다시 인스톨 하시고 불러오시면 정상적으로 작동하는 것을 볼 수 있습니다.
Sys.setenv("CUDA_HOME" = "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.2") source("https://raw.githubusercontent.com/mlverse/torch/master/R/install.R")<br> install.packages("torch")
-
- Oct 2020
-
pytorch.org pytorch.org
-
torch.argmax(input, dim, keepdim=False) → LongTensor
注意: dim 参数 0 表示列;1 表示行 .argmax() 跟 .max().indices 差不多
Tags
Annotators
URL
-
-
pytorch.org pytorch.org
-
torch.randint
Recap: torch.randint(low=0, high, size) 生成由在 [low, high] 之间随机整数的组成的 tensor,大小是 size 。
- low 下限,可缺省。默认值是0。如果参数 high 是负数就不能缺省。
- high 上限不能缺省。
- size 类型是 tuple 掺入参数的时候无比要加括号!
Tags
Annotators
URL
-
-
zhuanlan.zhihu.com zhuanlan.zhihu.com
-
执行 t2.view(-1)
报错
view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Use .reshape(...) instead.
-
t2 = t.transpose(0,1)
等同于 t2 = t.t()
-
- Nov 2017
-
hw-f5-neoreviews.highwire.org hw-f5-neoreviews.highwire.org
-
The acronym TORCH was initially proposed by Andres Nahmias in 1971 to represent 4 congenital infections with a similar clinical presentation, including a rash and ocular findings in neonates: toxoplasmosis, rubella, cytomegalovirus (CMV), and herpes simplex virus (HSV). Over the next few years, the acronym was changed to TORCHES to include syphilis.
The “other” category now includes:
*Lymphocytic Choriomeningitis virus (LCMV)
*Parvovirus B19
*Enteroviruses,
*Varicella-zoster virus
*Epstein-Barr virus
*Human immunodeficiency virus (HIV)
*West Nile virus, and
- Zika virus (ZIKV).
The most complex events in embryogenesis involving the sensory organs take place during the first few weeks of pregnancy, making the eyes and ears particularly vulnerable. The fetus does not have the immunologic mechanisms needed to eliminate the organism, leading to immunologic tolerance and chronic infection.
The most common eye finding of congenital infections is a chorioretinal scar. Congenital cataracts, optic nerve atrophy, or hypoplasia may also be found.
-