摘要:
题目: 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))
阅读全文
摘要:
题目:  ``` class Solution { public: int numWays(int n) { vec
阅读全文
摘要:
**1.tensor转np** ``` # 创建一个形状为[2, 2, 40, 256]的随机张量 torch_tensor = torch.rand(2, 2, 40, 256) # 将tensor转换为NumPy数组 numpy_array = torch_tensor.numpy() ```
阅读全文