Commit 67cdc5ed authored by Julian Treiber's avatar Julian Treiber

changes to crop layer

parent ba01b3c5
Pipeline #235144 passed with stages
in 4 minutes and 44 seconds
<#-- (c) https://github.com/MontiCore/monticore --> <#-- (c) https://github.com/MontiCore/monticore -->
<#--- http://beta.mxnet.io/r/api/mx.symbol.slice.html --> <#--- http://beta.mxnet.io/r/api/mx.symbol.slice.html -->
<#if element.inputs?size gte 1>
<#assign input = element.inputs[0]>
<#if mode == "FORWARD_FUNCTION"> <#if mode == "FORWARD_FUNCTION">
${element.name}_start = (None, None, ${tc.join(element.start, ", ")}) print(endd)
${element.name}_end = (None, None, ${tc.join(element.endd, ", ")}) ${element.name}_start = (None, None, ${tc.join(element.start, ", "})
${element.name}_end = (None, None, ${tc.join(element.endd, ", "})
${element.name} = F.slice(start=${element.name}_start, end=${element.name}_end) ${element.name} = F.slice(start=${element.name}_start, end=${element.name}_end)
</#if> </#if>
</#if> </#if>
/* (c) https://github.com/MontiCore/monticore */
architecture Crop(){
def input Z(0:255)^{3, 50, 50} image
def output Z(0:255)^{3, 48, 48} cropped
image ->
Crop(start=(1,1), endd=(-1,-1)) ->
cropped;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment