Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_model
Method · 0.80
_create_model
Method · 0.80
_embedding_input_layer
Method · 0.80
_multihead_attention
Method · 0.80
_create_model
Method · 0.80
_create_model
Method · 0.80
_create_model
Method · 0.80
_create_model
Method · 0.80
_embedding_input_layer
Method · 0.80
_create_model
Method · 0.80
_create_model
Method · 0.80
_create_model
Method · 0.80
Calls
2
numpy
Method · 0.45
shape
Method · 0.45
Tested by
no test coverage detected