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