Skip to content

Commit

Permalink
Fix for 0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
vfdev-5 authored Aug 4, 2018
1 parent ed2f968 commit bb4c440
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cuda/lltm_cuda.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ std::vector<at::Tensor> lltm_cuda_backward(
// C++ interface

// NOTE: AT_ASSERT has become AT_CHECK on master after 0.4.
#define CHECK_CUDA(x) AT_ASSERT(x.type().is_cuda(), #x " must be a CUDA tensor")
#define CHECK_CONTIGUOUS(x) AT_ASSERT(x.is_contiguous(), #x " must be contiguous")
#define CHECK_CUDA(x) AT_ASSERTM(x.type().is_cuda(), #x " must be a CUDA tensor")
#define CHECK_CONTIGUOUS(x) AT_ASSERTM(x.is_contiguous(), #x " must be contiguous")
#define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)

std::vector<at::Tensor> lltm_forward(
Expand Down

0 comments on commit bb4c440

Please sign in to comment.