In C++, the equivalent functions are torch::load() and torch::save(). Example usage:
auto x = torch::randn({5, 5});

auto tempfile = c10::make_tempfile();
torch::save(x, tempfile.name);

torch::Tensor y;
torch::load(y, tempfile.name);

ASSERT_TRUE(y.defined());
ASSERT_EQ(x.sizes().vec(), y.sizes().vec());
ASSERT_TRUE(x.allclose(y));