MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / Var

Method Var

oneflow/core/ndarray/cpu_ndarray_builder.h:33–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32 template<typename T = default_data_type, int NDIMS = default_ndims>
33 CpuVarNdarray<T, NDIMS> Var(const Shape& shape, T* ptr) const {
34 return CpuVarNdarray<T, NDIMS>(shape, ptr);
35 }
36 template<typename T = default_data_type, int NDIMS = default_ndims>
37 CpuVarNdarray<T, NDIMS> Var(const ShapeView& shape_view, T* ptr) const {
38 return CpuVarNdarray<T, NDIMS>(shape_view, ptr);

Callers 6

TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80

Calls

no outgoing calls

Tested by 3

TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64