| 43 | } |
| 44 | |
| 45 | TF_Tensor* BoolTensor(bool v) { |
| 46 | const int num_bytes = sizeof(bool); |
| 47 | bool* values = new bool[1]; |
| 48 | values[0] = v; |
| 49 | return TF_NewTensor(TF_BOOL, nullptr, 0, values, num_bytes, &BoolDeallocator, |
| 50 | nullptr); |
| 51 | } |
| 52 | |
| 53 | TF_Tensor* Int8Tensor(const int64_t* dims, int num_dims, const char* values) { |
| 54 | int64_t num_values = 1; |
no test coverage detected