• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






天生自然

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 ··· 146 147 148 149 150 151 152 153 154 ··· 276 下一页

2020年1月2日

吴裕雄--天生自然TensorFlow2教程:测试(张量)- 实战
摘要: import tensorflow as tf from tensorflow import keras from tensorflow.keras import datasets import os # do not print irrelevant information # os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' # x: [60k,28,28], 阅读全文
posted @ 2020-01-02 21:14 吴裕雄 阅读(554) 评论(0) 推荐(0)
 
吴裕雄--天生自然TensorFlow2教程:数据加载
摘要: import tensorflow as tf from tensorflow import keras # train: 60k | test: 10k (x, y), (x_test, y_test) = keras.datasets.mnist.load_data() x.shape y.shape # 0纯黑、255纯白 x.min(), x.max(), x.mean() x_test. 阅读全文
posted @ 2020-01-02 20:50 吴裕雄 阅读(305) 评论(0) 推荐(0)
 
吴裕雄--天生自然TensorFlow2教程:高阶操作
摘要: import tensorflow as tf a = tf.random.normal([3, 3]) a mask = a > 0 mask # 为True元素,即>0的元素的索引 indices = tf.where(mask) indices # 取回>0的值 tf.gather_nd(a, indices) A = tf.ones([3, 3]) B = tf.zeros([3, 3]) 阅读全文
posted @ 2020-01-02 16:52 吴裕雄 阅读(157) 评论(0) 推荐(0)
 
吴裕雄--天生自然TensorFlow2教程:张量限幅
摘要: import tensorflow as tf a = tf.range(10) a # a中小于2的元素值为2 tf.maximum(a, 2) # a中大于8的元素值为8 tf.minimum(a, 8) # a中的元素值限制在[2,8]区间内 tf.clip_by_value(a, 2, 8) a = a - 5 a tf.nn.relu(a) tf.maximum(a, 0) 缩放时不改变 阅读全文
posted @ 2020-01-02 16:35 吴裕雄 阅读(157) 评论(0) 推荐(0)
 
吴裕雄--天生自然TensorFlow2教程:填充与复制
摘要: import tensorflow as tf a = tf.reshape(tf.range(9), [3, 3]) a tf.pad(a, [[0, 0], [0, 0]]) tf.pad(a, [[ 1, 0, ], [0, 0]]) tf.pad(a, [[1, 1], [0, 0]]) tf.pad(a, [[1, 1], [1, 0]]) tf.... 阅读全文
posted @ 2020-01-02 16:08 吴裕雄 阅读(258) 评论(0) 推荐(0)
 
吴裕雄--天生自然TensorFlow2教程:张量排序
摘要: import tensorflow as tf a = tf.random.shuffle(tf.range(5)) a tf.sort(a, direction='DESCENDING') # 返回索引 tf.argsort(a, direction='DESCENDING') idx = tf.argsort(a, direction='DESCENDING') tf.gath... 阅读全文
posted @ 2020-01-02 15:48 吴裕雄 阅读(315) 评论(0) 推荐(0)
 
吴裕雄--天生自然TensorFlow2教程:数据统计
摘要: import tensorflow as tf a = tf.ones([2, 2]) a tf.norm(a) tf.sqrt(tf.reduce_sum(tf.square(a))) a = tf.ones([4, 28, 28, 3]) a.shape tf.norm(a) tf.sqrt(tf.reduce_sum(tf.square(a))) b = tf.ones([2, 2]) tf 阅读全文
posted @ 2020-01-02 15:29 吴裕雄 阅读(153) 评论(0) 推荐(0)
 

2020年1月1日

吴裕雄--天生自然TensorFlow2教程:合并与分割
摘要: 阅读全文
posted @ 2020-01-01 21:35 吴裕雄 阅读(242) 评论(0) 推荐(0)
 
吴裕雄--天生自然JAVA SPRING框架开发学习笔记:Spring CGLlB动态代理
摘要: JDK 动态代理使用起来非常简单,但是它也有一定的局限性,这是因为 JDK 动态代理必须要实现一个或多个接口,如果不希望实现接口,则可以使用 CGLIB 代理。 CGLIB(Code Generation Library)是一个高性能开源的代码生成包,它被许多 AOP 框架所使用,其底层是通过使用一个小而快的字节码处理框架 ASM(Java 字节码操控框架)转换字节码并生成新的类。因此 CGLI... 阅读全文
posted @ 2020-01-01 21:03 吴裕雄 阅读(226) 评论(0) 推荐(0)
 
吴裕雄--天生自然JAVA SPRING框架开发学习笔记:Spring JDK动态代理
摘要: JDK 动态代理是通过 JDK 中的 java.lang.reflect.Proxy 类实现的。下面通过具体的案例演示 JDK 动态代理的使用。 1. 创建项目 在 MyEclipse 中创建一个名称为 springDemo03 的 Web 项目,将 Spring 支持和依赖的 JAR 包复制到 W 阅读全文
posted @ 2020-01-01 20:44 吴裕雄 阅读(215) 评论(0) 推荐(0)
 
上一页 1 ··· 146 147 148 149 150 151 152 153 154 ··· 276 下一页