mirror of
https://github.com/marian-nmt/marian.git
synced 2024-09-17 09:47:34 +03:00
removed cudaSetDevice
This commit is contained in:
parent
3f74962df7
commit
12fa4f40d2
@ -1,8 +1,6 @@
|
||||
#include <sstream>
|
||||
#include "expression_graph.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
namespace marian {
|
||||
|
||||
Expr::Expr(ExpressionGraphPtr g, Chainable<Tensor>* chainable)
|
||||
@ -32,19 +30,10 @@ Expr::operator ChainPtr() {
|
||||
|
||||
std::string Expr::Debug() const
|
||||
{
|
||||
stringstream strm;
|
||||
std::stringstream strm;
|
||||
const Shape &shape = pimpl_->shape();
|
||||
strm << marian::Debug(shape);
|
||||
return strm.str();
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////
|
||||
//ExpressionGraph::ExpressionGraph(int cudaDevice)
|
||||
//: stack_(new ChainableStack)
|
||||
//{
|
||||
// std::srand (time(NULL));
|
||||
// cudaSetDevice(0);
|
||||
//
|
||||
//}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user