#include <torch/script.h>
#include <torch/torch.h>
#include <cereal/types/complex.hpp>
#include <cereal/types/string.hpp>
#include <cereal/types/vector.hpp>
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include "common.h"
#include "image-processor.h"
#include "keyword-ranker.h"
#include "query-types.h"
Go to the source code of this file.
|
| template<typename DType > |
| std::vector< std::vector< DType > > | sh::to_std_matrix (const at::Tensor &tensor_features) |
| |
| template<c10::ScalarType TensorDType_ = at::kFloat, typename OrigDType_ = float> |
| at::Tensor | sh::to_tensor (std::vector< OrigDType_ > &orig_vec) |
| |
| template<c10::ScalarType TensorDType_ = at::kFloat, typename OrigDType_ = float> |
| at::Tensor | sh::to_tensor (std::vector< std::vector< OrigDType_ >> &orig_mat) |
| |