Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ _as_operation
Function
_as_operation
tensorflow/python/eager/lift_to_graph.py:36–39 ·
view source on GitHub ↗
(op_or_tensor)
Source
from the content-addressed store, hash-verified
34
35
36
def
_as_operation(op_or_tensor):
37
if
isinstance(op_or_tensor, ops.Tensor):
38
return
op_or_tensor.op
39
return
op_or_tensor
40
41
42
def
_constant_inputs(op_or_tensor):
Callers
2
_constant_inputs
Function · 0.70
lift_to_graph
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected