| 163 | /// non-empty |
| 164 | template<typename inType, typename outType> |
| 165 | static Array<outType> var( |
| 166 | const Array<inType>& in, |
| 167 | const Array<typename baseOutType<outType>::type>& weights, |
| 168 | const af_var_bias bias, int dim) { |
| 169 | Array<outType> variance = createEmptyArray<outType>({0}); |
| 170 | tie(ignore, variance) = meanvar<inType, outType>(in, weights, bias, dim); |
| 171 | return variance; |
| 172 | } |
| 173 | |
| 174 | template<typename inType, typename outType> |
| 175 | static af_array var_(const af_array& in, const af_array& weights, |
no outgoing calls
no test coverage detected