MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / DataType

Method DataType

tensorflow/go/tensor.go:157–157  ·  view source on GitHub ↗

DataType returns the scalar datatype of the Tensor.

()

Source from the content-addressed store, hash-verified

155
156// DataType returns the scalar datatype of the Tensor.
157func (t *Tensor) DataType() DataType { return DataType(C.TF_TensorType(t.c)) }
158
159// Shape returns the shape of the Tensor.
160func (t *Tensor) Shape() []int64 { return t.shape }

Callers 15

TestSessionRunNegFunction · 0.95
TestConcurrencyFunction · 0.95
ValueMethod · 0.95
WriteContentsToMethod · 0.95
TestTensorSerializationFunction · 0.95
createGraphAndOpFunction · 0.95
TestOperationDeviceFunction · 0.95
ConstFunction · 0.45

Calls 1

DataTypeTypeAlias · 0.70

Tested by 15

TestSessionRunNegFunction · 0.76
TestConcurrencyFunction · 0.76
TestTensorSerializationFunction · 0.76
createGraphAndOpFunction · 0.76
TestOperationDeviceFunction · 0.76
ConstFunction · 0.36
TestGraphAddGradientsFunction · 0.36