惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 三生石上(FineUI控件)
Martin Fowler
Martin Fowler
月光博客
月光博客
AI
AI
B
Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
C
CXSECURITY Database RSS Feed - CXSecurity.com
WordPress大学
WordPress大学
GbyAI
GbyAI
L
Lohrmann on Cybersecurity
O
OpenAI News
Schneier on Security
Schneier on Security
P
Palo Alto Networks Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Troy Hunt's Blog
V2EX - 技术
V2EX - 技术
W
WeLiveSecurity
L
LINUX DO - 最新话题
人人都是产品经理
人人都是产品经理
S
Security Affairs
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
A
Arctic Wolf
Recorded Future
Recorded Future
Microsoft Security Blog
Microsoft Security Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
G
GRAHAM CLULEY
N
Netflix TechBlog - Medium
TaoSecurity Blog
TaoSecurity Blog
C
Check Point Blog
Scott Helme
Scott Helme
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Apple Machine Learning Research
Apple Machine Learning Research
PCI Perspectives
PCI Perspectives
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Vercel News
Vercel News
The Hacker News
The Hacker News
Y
Y Combinator Blog
Latest news
Latest news
SecWiki News
SecWiki News
Hugging Face - Blog
Hugging Face - Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Google Online Security Blog
Google Online Security Blog
Webroot Blog
Webroot Blog
Google DeepMind News
Google DeepMind News
Recent Commits to openclaw:main
Recent Commits to openclaw:main
C
Cisco Blogs
博客园_首页
H
Hackread – Cybersecurity News, Data Breaches, AI and More
宝玉的分享
宝玉的分享
L
LINUX DO - 热门话题

TensorFlow

容器化部署没有限制使用 CPU 和内存大小 ollama 只能调动一半 CPU 怎么解决 - V2EX 「提示词微调」「TIG-3.6 Mirage」TIG-3.6-Mirage 技术白皮书:提示微调新范式的工程实现与产业价值 - V2EX 想在 N5015 小主机上部署一个 Tensorflow 的项目,没想到这个 CPU 不支持 AVX 指令集 - V2EX 有没有搞图形算法的兄弟,有个活儿 tensorflow 20 种语言文档只有简中文档过时,也不提示用户过时 - V2EX 关于 tensorflow 引用 PixelLib 图像分割库的问题 - V2EX 你們是去哪找數據 去訓練 deep learning tensorflow 的? - V2EX 有没有一个合适的开源管理系统,可以管理 tensorflow 的 多机多卡的训练 Tensorflow 1.x 版本如何对 Tensorflow hub 的模型进行微调? - V2EX 用 Serverless 架构提供 TensorFlow AI 推理函数 - V2EX 请教为何在虚拟机 VirualBox 中运行的 Ubuntu20,没法加载 tensorflow。 我用了 tensorflow 循环从数据中提取命名实体,内存一直累计不释放 请问 tensorflow2 安装最低的内存要求? - V2EX 想自己训练 tensorflow 识别某个网站验证码的模型,谁能发一个言简意赅的教程,会 Python - V2EX Tensorflow 有没有入门书籍推荐 - V2EX 在 debian 中用 docker 版本的 tensorflow-gpu 失效问题 - V2EX 图像风格迁移问题,求助 - V2EX 普通的 Linux 服务器怎么跑 tensorflow? - V2EX 西安 TensorFlow 活动 自然语言处理,分词问题 - V2EX 有没适合企业内部用的开源 AI 平台?自建一个 ai 平台作为进入 ai 领域的研发,要怎么入手? - V2EX 请教下, 特征有多个值, 怎么处理比较好? Tensorflow 入门教程 - V2EX 关于 spyder3 的 Python 代码运行结果不一致 现在是不是转 MXNET 的最好时机 对于 TensorFlow 2.0 的 Keras API, 大家怎么看 - V2EX [Tensorboard 问题] 在已添加 tf.summary.scalar()的情况下, tf.summary.merge_all() 返回为 None. 请问这种情况为何发生,如何解决? - V2EX word2vec+LSTM 情感识别,帮忙看看哪出了问题 - V2EX 安装 tensorflow 的 gpu 版后 import 报错,有大佬碰到过这种情况吗? - V2EX tensorflow 安装报错 - V2EX 请教: 同一份 Tensorflow 代码,训练新闻自动分类, Windows 和 Linux 下的训练结果不一致? - V2EX 请各位推荐 TensorFlow 入门学习方法或路径 - V2EX 开箱即用的 Manjaro 大法好 - V2EX ai 的在医疗行业的应用有哪些?有哪些开源的或云服务可以直接用吗? Intel 冥王峡谷 2,这个机器的 AMD RX Vega M GH 芯片组可以跑 TensorFlow 吗? - V2EX TensorFlow 系列教程专题 - V2EX TensorFlow 1.9 官方入门实例:无需配置环境,在线学习 TensorFlow - V2EX CNN 训练时,为什么要将输入图片的像素取值范围从 0~255 转换为 0~1 - V2EX tensorflow 的 API 怎么能够快速掌握呢? 用 TensorFlow 实现一个手写汉字识别 - V2EX keras 框架与 django 框架一起使用 反复调用 model 模型 出错 TensorFlow 初学者,请教下 - V2EX Tensorflow 小说变动画 - V2EX 安利下 Google 最近出的机器学习教程 tensorflow 保存好的模型参数在不同版本下 请问,如何实现 4D 的卷积 一个严肃的关于深度学习鉴黄的问题 - V2EX 我在 B 站学机器学习(Machine Learning)- 吴恩达(Andrew Ng) [中英双语] - V2EX 我在 B 站学习深度学习(生动形象,跃然纸上) - V2EX 谷歌发布 TensorFlow Lite [官方网站,文档] - V2EX
expand_dims 中的困惑 - V2EX
panins · 2018-01-21 · via TensorFlow

买了一《 tensorflow 机器学习实战指南》,自己学到了第六章,神经网络算法。

但是有个简单例子小弟一时半会卡在这里,大家是否可以抽空指导一下。

谢谢

6.5 用 TENSORFLOW 实现神经网络常见层

我的问题是定义卷积层函数的时候,书上说把 1D 扩展到 4D。

为什么 input_4d = tf.expand_dims(input_3d, 3)第二个参数用了 3,而 input_1-3d 都是 0

import tensorflow as tf
import numpy as np
sess = tf.Session()
data_size = 25
data_1d = np.random.normal(size=data_size)
x_input_1d = tf.placeholder(dtype=tf.float32, shape=[data_size])


def conv_layer_1d(input_1d, my_filter):
    # make 1d input into 4d
    input_2d = tf.expand_dims(input_1d, 0)
    input_3d = tf.expand_dims(input_2d, 0)
    input_4d = tf.expand_dims(input_3d, 3)
    # perform convolution
    convolution_output = tf.nn.conv2d(input_4d, filter=my_filter,
                                      strides=[1,1,1,1], padding="VALID")
    conv_output_1d = tf.squeeze(convolution_output)
    return(conv_output_1d)

my_filter = tf.Variable(tf.random_normal(shape=[1,5,1,1]))
my_convolution_output = conv_layer_1d(x_input_1d, my_filter)
......