cpu.c 951 Bytes
Newer Older
rusty1s's avatar
rusty1s committed
1
2
3
4
5
#ifndef TH_GENERIC_FILE
#define TH_GENERIC_FILE "generic/cpu.c"
#else

void spline_(linear)(THFloatTensor *amount, THLongTensor *index, THFloatTensor *input, THLongTensor *kernel, THByteTensor *open) {
rusty1s's avatar
rusty1s committed
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  // s = (m+1)^d
  // amount: E x s
  // index: E x s
  // input: E x d
  // kernel: d
  // open: d
  //
  int64_t i, d;
  int64_t E = THLongTensor_size(index, 0);
  int64_t K = THLongTensor_size(index, 1);
  int64_t D = THLongTensor_size(kernel, 0);
  for (i = 0; i < E * K; i++) {
    for (d = 0; d < D; d++) {
    }
  }
rusty1s's avatar
rusty1s committed
21
22
23
}

void spline_(quadratic)(THFloatTensor *amount, THLongTensor *index, THFloatTensor *input, THLongTensor *kernel, THByteTensor *open) {
rusty1s's avatar
rusty1s committed
24
25
26
  int64_t i;
  for (i = 0; i < THLongTensor_size(input, dim); i++) {
  }
rusty1s's avatar
rusty1s committed
27
28
29
}

void spline_(cubic)(THFloatTensor *amount, THLongTensor *index, THFloatTensor *input, THLongTensor *kernel, THByteTensor *open) {
rusty1s's avatar
rusty1s committed
30
31
32
  int64_t i;
  for (i = 0; i < THLongTensor_size(input, dim); i++) {
  }
rusty1s's avatar
rusty1s committed
33
34
35
}

#endif