提交 290f3103 authored 作者: Jeremie Tanguay's avatar Jeremie Tanguay 提交者: Tanjay94

Added fill function in var.py.

上级 fea22731
......@@ -564,6 +564,10 @@ class _tensor_py_operators:
"""
return theano.tensor.basic.swapaxes(self, axis1, axis2)
def fill(self, value):
"""Fill inputted tensor with the assigned value"""
return theano.tensor.basic.fill(self, value)
class TensorVariable(_tensor_py_operators, Variable):
"""Subclass to add the tensor operators to the basic `Variable` class."""
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论