logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

android MediaPlayer + GLSurfaceView播放视频

1、配置layout<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:layout_height="match_parent"

#android#音视频#webview
深度学习-最简单的Demo-直接运行

本文通过一个简单的线性回归示例展示了深度学习的基本流程。使用PyTorch实现了人工数据生成、小批量数据加载、模型定义、损失函数和随机梯度下降优化。经过3轮训练后,模型参数(w,b)从初始随机值逐步接近真实值(2,-3.4,4.3),损失函数值从0.042降到0.000054,验证了梯度下降法在参数学习中的有效性。该demo为理解更复杂的神经网络训练提供了基础。

#深度学习#人工智能
c++ std::thread lambda

使用lambda的时候要注意变量生命周期的变化:for (int i =0; i < 5; i++) {int temp = i;std::this_thread::sleep_for(std::chrono::seconds(1));std::thread([&](){std::thread::id tid = std::this_thread::get_id();cout &lt

#c++#蓝桥杯#开发语言
windows 安装 stable diffusion

在windows上安装 stable diffusion,如果windows没有nvidia显卡,想只使用CPU可在webui-user.bat中添加命令。

文章图片
c++ std::thread lambda

使用lambda的时候要注意变量生命周期的变化:for (int i =0; i < 5; i++) {int temp = i;std::this_thread::sleep_for(std::chrono::seconds(1));std::thread([&](){std::thread::id tid = std::this_thread::get_id();cout &lt

#c++#蓝桥杯#开发语言
到底了