摘要: 在了解pytorch时发现, C++的代码出了很多新特征,对于简化代码有很大帮助。记录一下 c++ include include using namespace std; std::vector create_vector() { return {0,1.1,2,3,4}; } int main( 阅读全文
posted @ 2019-05-08 20:24 bregman 阅读(189) 评论(0) 推荐(0)
摘要: 就是SQP, 在scipy中被叫做Sequential Least Squares Programming 实现1: scipy.optimize.fmin_slsqp python包里还有其他算法,参考文档 http://www.pyopt.org/_downloads/pyopt_referen 阅读全文
posted @ 2019-05-08 17:46 bregman 阅读(1263) 评论(0) 推荐(0)