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

Function MakeShape

tensorflow/go/shape.go:42–46  ·  view source on GitHub ↗

MakeShape returns a Shape with the provided size of each dimension. A value of -1 implies that the size of the corresponding dimension is not known.

(shape ...int64)

Source from the content-addressed store, hash-verified

40// A value of -1 implies that the size of the corresponding dimension is not
41// known.
42func MakeShape(shape ...int64) Shape {
43 cpy := make([]int64, len(shape))
44 copy(cpy, shape)
45 return Shape{dims: cpy}
46}
47
48// NumDimensions returns the number of dimensions represented by s, or -1 if
49// unknown.

Callers 15

MakeContextMethod · 0.85
TEST_FFunction · 0.85
AddAndScaleFunction · 0.85
SubAndScaleFunction · 0.85
AddS64Function · 0.85
AddAndTupleFunction · 0.85
AddAndSubTupleFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TypeToShapeFunction · 0.85
TESTFunction · 0.85
SetUpMethod · 0.85

Calls 2

makeFunction · 0.85
copyFunction · 0.50

Tested by 15

MakeContextMethod · 0.68
TEST_FFunction · 0.68
AddAndScaleFunction · 0.68
SubAndScaleFunction · 0.68
AddS64Function · 0.68
AddAndTupleFunction · 0.68
AddAndSubTupleFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
SetUpMethod · 0.68
TEST_FFunction · 0.68