Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 2.7 什么样的论据才是「;序列“;paramater接受NO.scan扫描,如何解释_Python 2.7_Theano_Theano.scan - Fatal编程技术网

Python 2.7 什么样的论据才是「;序列“;paramater接受NO.scan扫描,如何解释

Python 2.7 什么样的论据才是「;序列“;paramater接受NO.scan扫描,如何解释,python-2.7,theano,theano.scan,Python 2.7,Theano,Theano.scan,我从中获取了以下代码 这里的代码旨在解释“序列”参数。 我的问题是: 序列是如何输入的?第一项“系数”是张量变量。第二项“theano.tensor.arange(max_系数)”是一个张量变量,它使用eval()给出一个带有[0……999]的列表。教程说- "The tensor(s) to be looped over should be provided to scan using the sequence keyword argument." 根据“序列”中提供的参数,循环是如何发生的

我从中获取了以下代码

这里的代码旨在解释“序列”参数。 我的问题是:

  • 序列是如何输入的?第一项“系数”是张量变量。第二项“theano.tensor.arange(max_系数)”是一个张量变量,它使用eval()给出一个带有[0……999]的列表。教程说-

    "The tensor(s) to be looped over should be provided to scan using the sequence keyword argument."
    
    根据“序列”中提供的参数,循环是如何发生的


  • 参数的顺序是:序列[t],输出信息,非序列

     coefficients[t]
     theano.tensor.arange(max_coefficients_supported)[t]
     x
    
    输出信息保存上一次迭代的结果

     coefficients[t]
     theano.tensor.arange(max_coefficients_supported)[t]
     x