Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Oneflow-Inc/oneflow
/ _scalar_str
Function
_scalar_str
python/oneflow/framework/tensor_str.py:202–203 ·
view source on GitHub ↗
(self, formatter1)
Source
from the content-addressed store, hash-verified
200
201
202
def
_scalar_str(self, formatter1):
203
return
formatter1.format(_try_convert_to_local_tensor(self).tolist())
204
205
206
def
_vector_str(self, indent, summarize, formatter1):
Callers
1
_tensor_str_with_formatter
Function · 0.85
Calls
2
_try_convert_to_local_tensor
Function · 0.90
format
Method · 0.45
Tested by
no test coverage detected