MCPcopy Create free account
hub / github.com/apache/singa / Reshape

Class Reshape

python/singa/layer.py:1538–1547  ·  view source on GitHub ↗

Generate a Reshape Operator

Source from the content-addressed store, hash-verified

1536
1537
1538class Reshape(Layer):
1539 """
1540 Generate a Reshape Operator
1541 """
1542
1543 def __init__(self):
1544 super(Reshape, self).__init__()
1545
1546 def forward(self, x, shape):
1547 return autograd.reshape(x, shape)
1548
1549
1550class CudnnRNN(Layer):

Callers 4

TEST_FFunction · 0.50
TrainFunction · 0.50
TrainFunction · 0.50
TrainFunction · 0.50

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.40