神经元网络中张量的关系

Relation of a Tensor in Neuronal Network

所以我读了很多关于张量的书。我对这个概念的理解足以满足我的目的。但是我找不到关于它们在 NN 中的确切使用方式的任何信息。例如,我使用 Tensorflow 构建神经网络来对图像进行分类。我拥有的唯一信息:层是用张量构建的。 现在我的问题是:据我所知,神经元网络是用神经元构建的。并且其中的一层是由许多神经元构建的。

我的问题听起来可能微不足道。但我找不到任何关于它的信息。他们宁愿谈论张量 神经元。但不是它们如何在带有 Tensorflow 的神经元网络中一起使用。

首先,这里有一些相关的定义:

Neural Networks are modeled as collections of neurons that are connected in an acyclic graph. In other words, the outputs of some neurons can become inputs to other neurons. [...] Neural Network models are often organized into distinct layers of neurons (cs231n).

Graphs are data structures that contain a set of tf.Operation objects, which represent units of computation; and tf.Tensor objects, which represent the units of data that flow between operations (Tensorflow intro to graphs).

现在回答问题:

Are Neurons and Tensors equivalent in Tensorflow?

没有。张量是数据单位。人工神经元是函数。这些功能可以用 tf.Operations 实现并处理存储在张量中的数据。

Are Tensors the input of Neurons?

例如,是的。神经元可以存储神经元的输入或输出。

希望对您有所帮助。我很乐意用更多细节来扩展答案。