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

Method tensor

tensorflow/core/framework/tensor.h:728–732  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

726
727template <typename T, size_t NDIMS>
728typename TTypes<T, NDIMS>::Tensor Tensor::tensor() {
729 CheckTypeAndIsAligned(DataTypeToEnum<T>::v());
730 return typename TTypes<T, NDIMS>::Tensor(base<T>(),
731 shape().AsEigenDSizes<NDIMS>());
732}
733
734template <typename T, size_t NDIMS>
735typename TTypes<T, NDIMS>::ConstTensor Tensor::tensor() const {

Callers 15

ConvertToHashImportOpMethod · 0.45
ValidateNodeFunction · 0.45
GetNodeTensorAttrFunction · 0.45
PrintStructureFunction · 0.45
SummarizeGraphFunction · 0.45
QuantizeWeightsFunction · 0.45
TestSetNodeTensorAttrMethod · 0.45
RoundWeightsFunction · 0.45
AttrValueHashFunction · 0.45
AreAttrValuesEqualFunction · 0.45
SummarizeAttrValueFunction · 0.45

Calls 2

TensorClass · 0.70
shapeFunction · 0.50

Tested by 15

TestSetNodeTensorAttrMethod · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
GetAttrValueMethod · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36