5
05052021
TAG:pytorch,index,tensor
问题:实现对 batch 中的每个 example 做 index select 运算
解决:expand + gather
05062021
TAG:VS CODE,python,Intellicode
问题:为 python 代码配置 Intellicode
解决:按照 Intellicode 的 readme 配置,需要安装 Python 插件和 Pylance 插件,然后在 python 插件的 settings 中把 language server 设置为 Pylance。Python 插件的工作目录是 workspace 所在目录,为了让插件能找到代码引用的第三方代码,需要在 workspace 的配置文件(.code-workspace)的 settings 一项中增加
python.analysis.extraPaths
列表,在其中列出代码引用的第三方包的路径。
05072021
TAG:Windows,conda,PowerShell / PS
问题:PowerShell 中 conda 环境始终为 base,无法 deactivate 也无法激活其他虚拟环境
解决:在 PS 中执行
conda init powershell
后再进行 conda 操作
Last updated
Was this helpful?