#include "cpp_resize.generated.h"
#include "cpp_softmax.generated.h"
#include "cpp_slice.generated.h"
-#include "cpp_batchnorm.generated.h"
#include "cpp_elu.generated.h"
#include "cpp_tanh.generated.h"
#include "cpp_elementwise.generated.h"
// Operations calls into all of the above
out.write(cpp_operations, sizeof(cpp_operations));
// Below call into operations
- out.write(cpp_batchnorm, sizeof(cpp_batchnorm));
out.write(cpp_leaky_relu, sizeof(cpp_leaky_relu));
// gen NN constructor
+++ /dev/null
-/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-void batchNorm(Tensor &out, const char *params, const Tensor &in)
-{
- out.reshape(in.getShape());
- float eps = deserializeT<float>(params);
- (float)eps;
- float avgFraction = deserializeT<float>(params);
- (float)avgFraction;
- bool spatial = deserializeT<int32_t>(params);
- (void)spatial;
- out.fillData(in.getData(), in.getShape().getNumElems());
-}