This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
Huawei_Technology
/
mindspore
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
13
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
!2072
optimize the performance of cpu lstm
Merge pull request
!2072
from baihuawei/cpulstm
tags/v0.5.0-beta
mindspore-ci-bot
Gitee
5 years ago
parent
87371be65d
f7bf4e6376
commit
664be2d047
2 changed files
with
10 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
mindspore/ccsrc/kernel/cpu/mkldnn/lstm_cpu_kernel.cc
+6
-0
mindspore/ccsrc/kernel/cpu/mkldnn/lstm_cpu_kernel.h
+ 4
- 0
mindspore/ccsrc/kernel/cpu/mkldnn/lstm_cpu_kernel.cc
View File
@@ -22,6 +22,10 @@
namespace mindspore {
namespace kernel {
void LstmCPUKernel::InitKernel(const CNodePtr &kernel_node) {
#ifdef PLATFORM_86
_MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
_MM_SET_DENORMALS_ZERO_MODE(_MM_DENORMALS_ZERO_ON);
#endif
MS_EXCEPTION_IF_NULL(kernel_node);
using tag = dnnl::memory::format_tag;
using dim = dnnl::memory::dims;
+ 6
- 0
mindspore/ccsrc/kernel/cpu/mkldnn/lstm_cpu_kernel.h
View File
@@ -16,6 +16,12 @@
#ifndef MINDSPORE_CCSRC_KERNEL_CPU_LSTM_CPU_KERNEL_H_
#define MINDSPORE_CCSRC_KERNEL_CPU_LSTM_CPU_KERNEL_H_
#if defined(__x86_64__) || defined(__amd64__) || defined(_M_IX86) || defined(_M_X64)
#define PLATFORM_86
#endif
#ifdef PLATFORM_86
#include <pmmintrin.h>
#endif
#include <vector>
#include <memory>
#include "kernel/cpu/mkldnn/mkl_cpu_kernel.h"
Write
Preview
Loading…
Cancel
Save