Skip to content
Snippets Groups Projects
Commit 5573c542 authored by Christian Fuß's avatar Christian Fuß
Browse files

Made 'size' parameter for OneHot Layer optional.

parent 5999ce8e
Branches
No related tags found
1 merge request!17Shared code, updated for CNNArchLang, etc.
Pipeline #153414 failed
<#assign input = element.inputs[0]>
<#assign size = element.size>
<#if mode == "ARCHITECTURE_DEFINITION">
self.${element.name} = OneHot(size=${size})
<#include "OutputShape.ftl">
self.${element.name} = OneHot(size=${size})
<#include "OutputShape.ftl">
</#if>
<#if mode == "FORWARD_FUNCTION">
${element.name} = self.${element.name}(${input})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment