Symbolic representation for unfold using ATen (#3334)

This commit is contained in:
James Reed
2017-10-27 21:08:45 -07:00
committed by Edward Z. Yang
parent ac8f56656d
commit 204044a522

View File

@ -233,3 +233,7 @@ def avg_pool2d(g, input, kernel_size, stride, padding, ceil_mode, count_include_
def log_softmax(g, input, dim=None):
return g.op("Log", g.op('Softmax', input, axis_i=dim).setTypeAs(input))
def unfold(g, input, dimension, size, step):
return g.op("ATen", input, operator_s="unfold", dimension_i=dimension, size_i=size, step_i=step)