XJTU System Optimization and Scheduling Midterm Report
Midterm Report
西安交通大学《系统优化与调度》课程中期报告

This is an automatically translated post by LLM. The original post is in Chinese. If you find any translation errors, please leave a comment to help me improve the translation. Thanks!
Recently, I have been reading "The Essence of Code", which explains the concepts behind many programming languages. This note mainly refers to Chapter 7 of the book: Names and Scopes.
在使用WSL2时,系统有空余内存的情况下,Linux子系统在运行时会不断分配系统内存。随着其不断运行,占据的内存越来越大,甚至会将Windows系统内存占满。因此,在运行WSL时要限制其内存的使用。
This is an automatically translated post by LLM. The original post is in Chinese. If you find any translation errors, please leave a comment to help me improve the translation. Thanks!
When using WSL2, the Linux subsystem will continuously allocate system memory while running, as long as there is available memory in the system. As it continues to run, it will occupy more and more memory, and may even fill up the memory of the Windows system. Therefore, it is necessary to limit its memory usage when running WSL.
The operation process is as follows:
Create a .wslconfig configuration file in the user
directory.
notepad .wslconfig to create and edit
the configuration file.Write the WSL configuration:
1
2
3
4[wsl2]
memory=2GB
swap=8GB
localhostForwarding=true
Restart WSL using wsl --shutdown.
Pytorch中,每一个网络继承于nn.Module类,当实例化之后,是通过维护一下8个字典来实现各种网络功能的:
1 | _parameters |
This is an automatically translated post by LLM. The original post is in Chinese. If you find any translation errors, please leave a comment to help me improve the translation. Thanks!
In Pytorch, each network inherits from the nn.Module
class and implements various network functions by maintaining the
following eight dictionaries after instantiation:
1 | _parameters |