摘要: 题目: class Solution { public: bool isMatch(string s, string p) { int m = s.size()+1, n = p.size()+1; vector<vector<bool>> dp(m, vector<bool>(n, false)) 阅读全文
posted @ 2023-08-28 22:57 孜孜不倦fly 阅读(14) 评论(0) 推荐(0)
摘要: 题目: ![](https://img2023.cnblogs.com/blog/2679751/202308/2679751-20230828214159429-355812566.png) ``` class Solution { public: int numWays(int n) { vec 阅读全文
posted @ 2023-08-28 21:42 孜孜不倦fly 阅读(25) 评论(0) 推荐(0)
摘要: **1.tensor转np** ``` # 创建一个形状为[2, 2, 40, 256]的随机张量 torch_tensor = torch.rand(2, 2, 40, 256) # 将tensor转换为NumPy数组 numpy_array = torch_tensor.numpy() ``` 阅读全文
posted @ 2023-08-28 16:25 孜孜不倦fly 阅读(29) 评论(0) 推荐(0)