摘要:
**一.打印np数组** ``` import numpy as np arr = np.array([13, 2500]) print(np.shape(arr)) ``` **二.打印tensor张量** ``` import torch arr = torch.Tensor([[1, 2, 3
阅读全文
posted @ 2023-08-31 22:27
孜孜不倦fly
阅读(46)
推荐(0)
编辑
摘要:
题目: ![](https://img2023.cnblogs.com/blog/2679751/202308/2679751-20230831214433091-1952227654.png) ``` class Solution { public: int cuttingRope(int n)
阅读全文
posted @ 2023-08-31 21:53
孜孜不倦fly
阅读(2)
推荐(0)
编辑
摘要:
题目: class Solution { public: vector<int> constructArr(vector<int>& a) { int len = a.size(); if(len==0) return {}; vector<int> b(len, 1); for(int i=1;i
阅读全文
posted @ 2023-08-31 20:45
孜孜不倦fly
阅读(3)
推荐(0)
编辑