mirror of
https://github.com/marian-nmt/marian.git
synced 2024-08-15 01:00:23 +03:00
changed name
This commit is contained in:
parent
82b97c8536
commit
cb255acab9
@ -7,7 +7,7 @@
|
||||
|
||||
#include <boost/pool/pool.hpp>
|
||||
|
||||
namespace mad {
|
||||
namespace marian {
|
||||
|
||||
typedef float Tensor; // Now do this for cuDNN tensors!
|
||||
struct Chainable;
|
||||
@ -82,7 +82,7 @@ class Var {
|
||||
}
|
||||
|
||||
void calc_gradients() {
|
||||
mad::grad(vimpl_);
|
||||
marian::grad(vimpl_);
|
||||
}
|
||||
|
||||
private:
|
@ -1,11 +1,11 @@
|
||||
#include <iostream>
|
||||
#include <ctime>
|
||||
|
||||
#include "mad.h"
|
||||
#include "marian.h"
|
||||
|
||||
mad::Var layer(size_t max) {
|
||||
marian::Var layer(size_t max) {
|
||||
|
||||
using namespace mad;
|
||||
using namespace marian;
|
||||
|
||||
Var x0 = 1, x1 = 2, x2 = 3;
|
||||
Var y = 0.0;
|
||||
@ -23,7 +23,7 @@ mad::Var layer(size_t max) {
|
||||
int main(int argc, char** argv) {
|
||||
srand(time(NULL));
|
||||
|
||||
using namespace mad;
|
||||
using namespace marian;
|
||||
|
||||
Var y1 = layer(10);
|
||||
Var y2 = layer(5);
|
||||
|
Loading…
Reference in New Issue
Block a user