Go to the source code of this file.
|
namespace | at |
| Distributions kernel adapted from THRandom.cpp The kernels try to follow std::random distributions signature For instance: in ATen auto gen = at::detail::createCPUGenerator(); at::uniform_real_distribution<double> uniform(0, 1); auto sample = uniform(gen.get());.
|
|
namespace | caffe2 |
| Copyright (c) 2016-present, Facebook, Inc.
|
|
|
void | caffe2::ReinitializeTensor (Tensor *t, at::IntArrayRef dims, at::TensorOptions options) |
| Reinitialize a Tensor to given dims and options if necessary, note that this will not do anything if the Tensor already has correct size and data type. More...
|
|
void | caffe2::ReinitializeAndCopyFrom (Tensor *t, at::TensorOptions options, const Tensor &src, bool async) |
|
TypeCall | caffe2::GetTypeCallFunction (TypeIdentifier id) |
|
void | caffe2::RegisterTypeCallFunction (TypeIdentifier id, TypeCall c) |
|
TensorInfoCall | caffe2::GetTensorInfoFunction (TypeIdentifier id) |
|
void | caffe2::RegisterTensorInfoFunction (TypeIdentifier id, TensorInfoCall c) |
|
void | caffe2::TensorVectorResize (std::vector< Tensor > &tensors, int size, DeviceType type) |
|
Tensor | caffe2::empty (at::IntArrayRef dims, at::TensorOptions options) |
|
template<typename T > |
Tensor | caffe2::TensorCPUFromValues (at::IntArrayRef dims, at::ArrayRef< T > values) |
| Creates a CPU tensor, and fills its contents with the given values. More...
|
|
vector< int64_t > | caffe2::GetTensorInfo (const void *c, size_t *capacity, DeviceOption *device) |
|