Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ngraph
Commits
cf5d68cc
Commit
cf5d68cc
authored
Jul 20, 2018
by
Jaikrishnan Menon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CPU Direct Execution: Implement BatchNorm variants
parent
ddf6300c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
72 additions
and
0 deletions
+72
-0
batch_norm.cpp
src/ngraph/runtime/cpu/builder/batch_norm.cpp
+0
-0
batchnorm.hpp
src/ngraph/runtime/cpu/kernel/batchnorm.hpp
+72
-0
No files found.
src/ngraph/runtime/cpu/builder/batch_norm.cpp
0 → 100644
View file @
cf5d68cc
This diff is collapsed.
Click to expand it.
src/ngraph/runtime/cpu/kernel/batchnorm.hpp
0 → 100644
View file @
cf5d68cc
/*******************************************************************************
* Copyright 2018 Intel Corporation
*
* 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.
*******************************************************************************/
#pragma once
#include "ngraph/runtime/reference/batch_norm.hpp"
#include "ngraph/shape.hpp"
namespace
ngraph
{
namespace
runtime
{
namespace
cpu
{
namespace
kernel
{
template
<
typename
ElementType
>
void
batch_norm_three_outputs
(
double
eps
,
const
void
*
arg0
,
const
void
*
arg1
,
const
void
*
arg2
,
void
*
out0
,
void
*
out1
,
void
*
out2
,
const
Shape
&
arg2_shape
)
{
reference
::
batch_norm_three_outputs
(
eps
,
static_cast
<
const
ElementType
*>
(
arg0
),
static_cast
<
const
ElementType
*>
(
arg1
),
static_cast
<
const
ElementType
*>
(
arg2
),
static_cast
<
ElementType
*>
(
out0
),
static_cast
<
ElementType
*>
(
out1
),
static_cast
<
ElementType
*>
(
out2
),
arg2_shape
);
}
template
<
typename
ElementType
>
void
batch_norm_one_output
(
double
eps
,
const
void
*
arg0
,
const
void
*
arg1
,
const
void
*
arg2
,
const
void
*
arg3
,
const
void
*
arg4
,
void
*
out0
,
const
Shape
&
arg2_shape
)
{
reference
::
batch_norm_one_output
(
eps
,
static_cast
<
const
ElementType
*>
(
arg0
),
static_cast
<
const
ElementType
*>
(
arg1
),
static_cast
<
const
ElementType
*>
(
arg2
),
static_cast
<
const
ElementType
*>
(
arg3
),
static_cast
<
const
ElementType
*>
(
arg4
),
static_cast
<
ElementType
*>
(
out0
),
arg2_shape
);
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment