深度学习与PyTorch入门实战 - 18.2 LOSS及其梯度PyTorch ## LOSS及其梯度 主讲人:龙良曲 ## Typical Loss ## Mean Squared Error ## Cross Entropy Loss binary multi-class +softmax Leave it to Logistic Regression Part ## MSE $$ \begin{aligned} ■ loss=\sum[y-( |_{2}\end{array}\right. $$ $$ loss=norm(y-(xw+b))^{2} $$ ## Derivative $$ \textcircled{k}l o s s=\sum[y-f_{\theta}(x)]^{2} $$ $$ \blacksquare\frac{\nabla loss}{\nabla\theta}=2\sum[y-f_{\theta}(x)]*\frac{\nabla autograd.grad ## ☀️ ☁️ ☁️ In [15]: x=torch.ones(1) In [17]: w=torch.full([1],2) In [19]: mse=F.mse_loss(torch.ones(1), x*w) Out[20]: tensor(1.) In [21]: torch.autograd.grad(mse,[w]) #RuntimeError: element0 码力 | 14 页 | 989.18 KB | 2 年前3
CROSS PLATFORM PITFALLS AND HOW TO AVOID THEM## CROSS-PLATFORM PITFALLS AND HOW TO AVOID THEM Erika Sweet (she/her) Microsoft C++ Team ## Welcome to CppCon 2020! ### V isit our table at the Expo Hall https://aka.ms/cppcon/expo • Meet the Microsoft (e.g. NuGet) Language specific package managers (e.g. vcpkg, Conan) Our recommendation for C++ cross-platform development ## C++ package managers: Conan, vcpkg Bring down and build libraries from source solution space ## Debugging: the solution space Cross-platform IDEs, editors, and tools CLion, VS Code, Qt Creator ## Debugging: the solution space Cross-platform IDEs, editors, and tools CLion, VS Code0 码力 | 67 页 | 360.44 KB | 1 年前3
Cross-Platform Floating-Point Determinism Out of the Box## +24 ## Cross-Platform Floating-Point Determinism Out of the Box ## SHERRY IGNATCHENKO ET AL ## Authors  ## All the Testability (Sort of)  2 Cross Platform Distributed Simulations, Games, especially RTS  local cache: concurrency, Continuous Integration, isolation 105 10 Systems and cross building 107 10.1 Cross building 107 10.2 Windows Subsystems 115 11 Extending Conan 119 11.1 Python 13.7 How to manage C++ standard [EXPERIMENTAL] ..... 198 13.8 How to use docker to create and cross build C and C++ conan packages ..... 200 13.9 How to reuse Python code in recipes ..... 202 130 码力 | 479 页 | 3.09 MB | 1 年前3
The Zig Programming Language 0.3.0 Documentation0 码力 | 175 页 | 4.08 MB | 2 年前3
Conan 1.8 DocumentationIntroduction 3 1.1 Open Source 3 1.2 Decentralized package manager 3 1.3 Binary management 4 1.4 Cross platform, build system agnostic 5 1.5 Stable 5 2 Install 7 2.1 Install with pip (recommended) local cache: concurrency, Continuous Integration, isolation 104 10 Systems and cross building 107 10.1 Cross building 107 10.2 Windows Subsystems 115 11 Extending Conan 119 11.1 Python built from sources on the client machine to create a binary package matching their settings. ### 1.4 Cross platform, build system agnostic Conan works and is being actively used on Windows, Linux (Ubuntu0 码力 | 458 页 | 3.03 MB | 1 年前3
Conan 1.9 DocumentationIntroduction 3 1.1 Open Source 3 1.2 Decentralized package manager 3 1.3 Binary management 4 1.4 Cross platform, build system agnostic 5 1.5 Stable 5 2 Install 7 2.1 Install with pip (recommended) cache: concurrency, Continuous Integration, isolation ..... 104 10 Systems and cross building ..... 107 10.1 Cross building ..... 107 10.2 Windows Subsystems ..... 115 11 Extending Conan ..... built from sources on the client machine to create a binary package matching their settings. ### 1.4 Cross platform, build system agnostic Conan works and is being actively used on Windows, Linux (Ubuntu0 码力 | 470 页 | 3.05 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100
相关搜索词
MSECross Entropy LossSoftmaxautograd.gradbackward跨平台开发调试工具测试工具远程调试持续集成Floating-Point DeterminismCross-PlatformIEEE 754CompilersPerformanceLogistic RegressionSigmoidBinary ClassificationCross EntropyPyTorch跨平台架构C++20性能优化概念平台支持Conan1.3settingsprofilescross-compilationpackage managercross platformbuild systemstabilityZigcompilerbuild optionserror handlingcross-platformdependency managementcross-buildingconfiguration













