forked from apache/mxnet
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix refactor sparse gpu test (apache#104)
* Fix gpu build * Fix * Fix gpu test failure
- Loading branch information
1 parent
ddbe565
commit 905304c
Showing
8 changed files
with
58 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/*! | ||
* Copyright (c) 2017 by Contributors | ||
* \file utils.cc | ||
* \brief cpu implementation of util functions | ||
*/ | ||
|
||
#include "./utils.h" | ||
#include "../operator/nn/cast_storage-inl.h" | ||
|
||
namespace mxnet { | ||
namespace common { | ||
|
||
|
||
template<> | ||
void CastStorageDispatch<cpu>(mshadow::Stream<cpu>* s, | ||
const NDArray& input, | ||
const NDArray& output) { | ||
mxnet::op::CastStorageComputeImpl(s, input, output); | ||
} | ||
|
||
|
||
} // namespace common | ||
} // namespace mxnet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/*! | ||
* Copyright (c) 2017 by Contributors | ||
* \file utils.cu | ||
* \brief gpu implementation of util functions | ||
*/ | ||
|
||
#include "./utils.h" | ||
#include "../operator/nn/cast_storage-inl.h" | ||
|
||
namespace mxnet { | ||
namespace common { | ||
|
||
template<> | ||
void CastStorageDispatch<gpu>(mshadow::Stream<gpu>* s, | ||
const NDArray& input, | ||
const NDArray& output) { | ||
mxnet::op::CastStorageComputeImpl(s, input, output); | ||
} | ||
|
||
} // namespace common | ||
} // namespace mxnet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters