25#include "neml2/misc/types.h"
29const torch::TensorOptions
32 return torch::TensorOptions()
34 .layout(torch::kStrided)
35 .memory_format(torch::MemoryFormat::Contiguous)
38 .requires_grad(
false);
41const torch::TensorOptions
44 return torch::TensorOptions()
45 .dtype(NEML2_INT_DTYPE)
46 .layout(torch::kStrided)
47 .memory_format(torch::MemoryFormat::Contiguous)
50 .requires_grad(
false);
Definition CrossRef.cxx:32
const torch::TensorOptions default_tensor_options()
Definition types.cxx:30
const torch::TensorOptions default_integer_tensor_options()
We similarly want to have a default integer scalar type for some types of tensors.
Definition types.cxx:42