MCPcopy 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
202def _scalar_str(self, formatter1):
203 return formatter1.format(_try_convert_to_local_tensor(self).tolist())
204
205
206def _vector_str(self, indent, summarize, formatter1):

Callers 1

Calls 2

formatMethod · 0.45

Tested by

no test coverage detected