changed name

This commit is contained in:
Marcin Junczys-Dowmunt 2016-05-03 23:55:11 +01:00
parent 82b97c8536
commit cb255acab9
3 changed files with 6 additions and 6 deletions

BIN
src/a.out

Binary file not shown.

View File

@ -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:

View File

@ -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);