mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Symbolic representation for unfold using ATen (#3334)
This commit is contained in:
committed by
Edward Z. Yang
parent
ac8f56656d
commit
204044a522
@ -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)
|
||||
|
Reference in New Issue
Block a user