上一页 1 ··· 175 176 177 178 179 180 181 182 183 ··· 273 下一页
摘要: 比如我将string作为CNN 文本处理输入: 其中,vocabMap为词汇表。构建方法: 注意每一次迭代都是int。 下面是详细解释: 循环遍历Java字符串的字符的规范方法: http://stackoverflow.com/questions/1527856/how-can-i-iterate 阅读全文
posted @ 2018-02-26 16:51 bonelee 阅读(3999) 评论(0) 推荐(0)
摘要: 背景:希望将pickle转换为json,由于pickle里有utf8的字符,因此转换失败。 转换代码如下: 修正后的代码:因为pickle自身是latin编码,需要转换为utf8再给json编码。 尤其注意: python2的json是无法处理,包含utf8和unicode两种编码的!比如仅仅包含u 阅读全文
posted @ 2018-02-26 12:09 bonelee 阅读(2432) 评论(2) 推荐(0)
摘要: ref: https://gist.github.com/Samurais/567ebca0f59c612eb977065008aad867 阅读全文
posted @ 2018-02-26 09:57 bonelee 阅读(761) 评论(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 阅读(2198) 评论(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 阅读(6691) 评论(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 阅读(3628) 评论(2) 推荐(0)
摘要: 模型压缩 为了将tensorflow深度学习模型部署到移动/嵌入式设备上,我们应该致力于减少模型的内存占用,缩短推断时间,减少耗电。有几种方法可以实现这些要求,如量化、权重剪枝或将大模型提炼成小模型。 在这个项目中,我使用了 TensorFlow 中的量化工具来进行模型压缩。目前我只使用权重量化来减 阅读全文
posted @ 2018-02-18 19:21 bonelee 阅读(6074) 评论(2) 推荐(1)
摘要: from:http://deeplearning.lipingyang.org/tensorflow-examples-text/ TensorFlow examples (text-based) This page provides links to text-based examples (in 阅读全文
posted @ 2018-02-17 20:35 bonelee 阅读(1957) 评论(0) 推荐(0)
摘要: 使用Android Studio 可以在Android Studio中直接打开tensorflow/examples/android,但是需要配置好你的gradle、sdk、ndk gradle必须要在3.3以上版本 build_tool_version需要指定在25以上 配置好你的ndk 很重要: 阅读全文
posted @ 2018-02-14 15:09 bonelee 阅读(1425) 评论(0) 推荐(0)
摘要: Introduction to TensorFlow Lite TensorFlow Lite is TensorFlow’s lightweight solution for mobile and embedded devices. It enables on-device machine lea 阅读全文
posted @ 2018-02-14 11:02 bonelee 阅读(10762) 评论(0) 推荐(0)
上一页 1 ··· 175 176 177 178 179 180 181 182 183 ··· 273 下一页