MCPcopy Create free account
hub / github.com/apache/singa / SizeOf

Function SizeOf

include/singa/core/tensor.h:40–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 sizeof(int), sizeof(char),
39 sizeof(double), sizeof(unsigned char)};
40inline size_t SizeOf(DataType t) {
41 static_assert(kNumDataType == sizeof(kDataWidth) / sizeof(size_t),
42 "Num of data types not match num of data width");
43 CHECK_GT(kNumDataType, t);
44 return kDataWidth[t];
45}
46
47/// A Tensor instance is a multi-dimensional array resident on a Device
48/// (default device is the host CPU). The internal data is allocated in lazy

Callers 11

TensorMethod · 0.85
tensor.ccFile · 0.85
CopyDataFromHostPtrMethod · 0.85
FromProtoMethod · 0.85
CopyDataToFromFunction · 0.85
RepeatDataToFromFunction · 0.85
CudnnConvHandleMethod · 0.85
GpuConvForwardFunction · 0.85
GpuConvBackwardxFunction · 0.85
GpuConvBackwardWFunction · 0.85
sizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected