上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 24 下一页
摘要: 代码 输出 阅读全文
posted @ 2018-09-06 15:37 路边的十元钱硬币 阅读(182) 评论(0) 推荐(0) 编辑
摘要: Concatenates tensors along one dimension. 阅读全文
posted @ 2018-09-06 13:24 路边的十元钱硬币 阅读(174) 评论(0) 推荐(0) 编辑
摘要: # 'value' is a tensor with shape [5, 30] # Split 'value' into 3 tensors with sizes [4, 15, 11] along dimension 1 split0, split1, split2 = tf.split(value, [4, 15, 11], 1) tf.shape(split0) # [5, 4] tf... 阅读全文
posted @ 2018-09-06 13:22 路边的十元钱硬币 阅读(399) 评论(0) 推荐(0) 编辑
摘要: b_idx = np.random.randint(0, 9, 90) >>> b_idx array([0, 1, 5, 4, 7, 2, 7, 0, 0, 4, 2, 2, 3, 5, 6, 4, 7, 0, 3, 2, 7, 3, 8, 5, 4, 3, 1, 8, 6, 6, 5, 5, 3, 2, 2, 2, 0, 4, 8, 1, 5, 3, 2, 6, ... 阅读全文
posted @ 2018-09-06 12:50 路边的十元钱硬币 阅读(645) 评论(0) 推荐(0) 编辑
摘要: 假如一个电脑上有多个Python的环境,想要设置不同的python解释器用于调试。 VSCode 的设置,是通过.json的文本来配置的。打开文本的方式: 打开后的文件如下所示: 可以试试“new settings editor”,是一个类似界面的输入方式; 找到python的路径,如图所示。 修改 阅读全文
posted @ 2018-09-05 17:55 路边的十元钱硬币 阅读(2538) 评论(0) 推荐(0) 编辑
摘要: 今天测试发现一个问题,cv::FileStorage读取中,xml文件的第一层节点不能超过4个。 在加一个test4的话,就会在 中挂掉。 阅读全文
posted @ 2018-09-02 20:01 路边的十元钱硬币 阅读(814) 评论(0) 推荐(0) 编辑
摘要: # Python 3.6.5 :: Anaconda, Inc. import numpy as np import pandas as pd import time np.random.seed(2) N_STATUS = 5 ACTIONS = ['left', 'right'] EPSILON = 0.9 ALPHA = 0.1 LAMBDA = 0.9 MAX_EPISODES =... 阅读全文
posted @ 2018-08-23 10:04 路边的十元钱硬币 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 摘自opencv 源代码 阅读全文
posted @ 2018-08-17 14:47 路边的十元钱硬币 阅读(1342) 评论(0) 推荐(0) 编辑
摘要: 一种推荐的做法是,使用opencv自己的时间函数作为随机数的种子。 阅读全文
posted @ 2018-08-17 13:51 路边的十元钱硬币 阅读(1343) 评论(0) 推荐(0) 编辑
摘要: #include /* @param o The customer origin @param x The customer x @Note The return matrix include translation */ cv::Mat ZRotationMatrix(const cv::Point2d o, const cv::Point2d x) { cv::Mat Rz = ... 阅读全文
posted @ 2018-07-31 21:41 路边的十元钱硬币 阅读(175) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 24 下一页