Skip to content

Commit a70fca5

Browse files
fixed dockerfile
1 parent 71f8b30 commit a70fca5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ RUN apt-get update && apt-get -y install cmake
1111

1212
WORKDIR /binary-tensor
1313
COPY src/ ./src/
14+
COPY test/ ./test/
1415
COPY CMakeLists.txt ./
1516
COPY Config.cmake.in ./
1617
WORKDIR /binary-tensor

test/main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ int main(int argc, char const *argv[])
2424
Tensor a01 = Tensor(a1);
2525
Tensor a02 = Tensor(a2);
2626
auto b = a01 + a02;
27-
b.calc_grad();
27+
b.calc_grad(ones(b.get_buffer().shape()));
2828
std::cout << b << std::endl <<
2929
a01.get_grad() << std::endl <<
3030
sizeof a1 << std::endl;

0 commit comments

Comments
 (0)