<spanclass="n">AddInput</span><spanclass="p">(</span><spanclass="s">"input"</span><spanclass="p">,</span><spanclass="s">"input of cosine op"</span><spanclass="p">);</span>
<spanclass="n">AddAttr</span><spanclass="p">(</span><spanclass="s">"scale"</span><spanclass="p">,</span><spanclass="s">"scale of cosine op"</span><spanclass="p">,</span><spanclass="kt">float</span><spanclass="p">).</span><spanclass="n">Default</span><spanclass="p">(</span><spanclass="mf">1.0</span><spanclass="p">).</span><spanclass="n">LargerThan</span><spanclass="p">(</span><spanclass="mf">0.0</span><spanclass="p">);</span>
<spanclass="n">AddAttr</span><spanclass="p">(</span><spanclass="s">"scale"</span><spanclass="p">,</span><spanclass="s">"scale of cosine op"</span><spanclass="p">,</span><spanclass="kt">float</span><spanclass="p">).</span><spanclass="n">Default</span><spanclass="p">(</span><spanclass="mf">1.0</span><spanclass="p">).</span><spanclass="n">GreaterThan</span><spanclass="p">(</span><spanclass="mf">0.0</span><spanclass="p">);</span>
<spanclass="n">AddInput</span><spanclass="p">(</span><spanclass="s">"input"</span><spanclass="p">,</span><spanclass="s">"input of cosine op"</span><spanclass="p">);</span>
<spanclass="n">AddAttr</span><spanclass="p">(</span><spanclass="s">"scale"</span><spanclass="p">,</span><spanclass="s">"scale of cosine op"</span><spanclass="p">,</span><spanclass="kt">float</span><spanclass="p">).</span><spanclass="n">Default</span><spanclass="p">(</span><spanclass="mf">1.0</span><spanclass="p">).</span><spanclass="n">LargerThan</span><spanclass="p">(</span><spanclass="mf">0.0</span><spanclass="p">);</span>
<spanclass="n">AddAttr</span><spanclass="p">(</span><spanclass="s">"scale"</span><spanclass="p">,</span><spanclass="s">"scale of cosine op"</span><spanclass="p">,</span><spanclass="kt">float</span><spanclass="p">).</span><spanclass="n">Default</span><spanclass="p">(</span><spanclass="mf">1.0</span><spanclass="p">).</span><spanclass="n">GreaterThan</span><spanclass="p">(</span><spanclass="mf">0.0</span><spanclass="p">);</span>