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

Method ones

tensorflow/compiler/tests/eager_test.py:201–203  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

199 constant_op.constant(value)).numpy()
200
201 def ones(value):
202 return array_ops.shape(
203 array_ops.ones(value)).numpy()
204
205 with self.test_scope():
206 # Shapes of directly constructed tensors

Callers 15

_create_modelMethod · 0.80
_create_modelMethod · 0.80
_multihead_attentionMethod · 0.80
_create_modelMethod · 0.80
_create_modelMethod · 0.80
_create_modelMethod · 0.80
_create_modelMethod · 0.80
_create_modelMethod · 0.80
_create_modelMethod · 0.80
_create_modelMethod · 0.80

Calls 2

numpyMethod · 0.45
shapeMethod · 0.45

Tested by

no test coverage detected