上一页 1 ··· 175 176 177 178 179 180 181 182 183 ··· 274 下一页
摘要: Initially, there is a Robot at position (0, 0). Given a sequence of its moves, judge if this robot makes a circle, which means it moves back to the or 阅读全文
posted @ 2018-02-27 20:29 bonelee 阅读(187) 评论(0) 推荐(0)
摘要: The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, calcul 阅读全文
posted @ 2018-02-27 20:05 bonelee 阅读(187) 评论(0) 推荐(0)
摘要: You're given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in Sis a type of stone 阅读全文
posted @ 2018-02-27 19:23 bonelee 阅读(252) 评论(0) 推荐(0)
摘要: 比如我将string作为CNN 文本处理输入: 其中,vocabMap为词汇表。构建方法: 注意每一次迭代都是int。 下面是详细解释: 循环遍历Java字符串的字符的规范方法: http://stackoverflow.com/questions/1527856/how-can-i-iterate 阅读全文
posted @ 2018-02-26 16:51 bonelee 阅读(3989) 评论(0) 推荐(0)
摘要: 背景:希望将pickle转换为json,由于pickle里有utf8的字符,因此转换失败。 转换代码如下: 修正后的代码:因为pickle自身是latin编码,需要转换为utf8再给json编码。 尤其注意: python2的json是无法处理,包含utf8和unicode两种编码的!比如仅仅包含u 阅读全文
posted @ 2018-02-26 12:09 bonelee 阅读(2403) 评论(2) 推荐(0)
摘要: ref: https://gist.github.com/Samurais/567ebca0f59c612eb977065008aad867 阅读全文
posted @ 2018-02-26 09:57 bonelee 阅读(756) 评论(0) 推荐(0)
摘要: CPU Information on Linux and OS X This is small blog post detailing how to obtain information on your CPU on Linux and Mac OSX. These commands give in 阅读全文
posted @ 2018-02-25 18:04 bonelee 阅读(2178) 评论(0) 推荐(0)
摘要: 查看tensorflow pb模型文件的节点信息: 效果: 参考:https://tang.su/2017/01/export-TensorFlow-network/ https://github.com/tensorflow/tensorflow/issues/15689 一些核心代码: This 阅读全文
posted @ 2018-02-23 16:27 bonelee 阅读(6678) 评论(0) 推荐(0)
摘要: bazel build -c opt //tensorflow/contrib/android:libtensorflow_inference.so --crosstool_top=//external:android/crosstool --host_crosstool_top=@bazel_to 阅读全文
posted @ 2018-02-18 19:25 bonelee 阅读(3623) 评论(2) 推荐(0)
摘要: 模型压缩 为了将tensorflow深度学习模型部署到移动/嵌入式设备上,我们应该致力于减少模型的内存占用,缩短推断时间,减少耗电。有几种方法可以实现这些要求,如量化、权重剪枝或将大模型提炼成小模型。 在这个项目中,我使用了 TensorFlow 中的量化工具来进行模型压缩。目前我只使用权重量化来减 阅读全文
posted @ 2018-02-18 19:21 bonelee 阅读(6059) 评论(2) 推荐(1)
上一页 1 ··· 175 176 177 178 179 180 181 182 183 ··· 274 下一页