Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/google-deepmind/gemma
/ _decode_bytes
Function
_decode_bytes
gemma/gm/data/_tasks.py:272–276 ·
view source on GitHub ↗
(element)
Source
from the content-addressed store, hash-verified
270
271
272
def
_decode_bytes(element):
273
if
isinstance(element, bytes):
274
return
element.decode(
"utf-8"
)
275
else
:
276
return
element
Callers
2
map
Method · 0.85
map
Method · 0.85
Calls
1
decode
Method · 0.45
Tested by
no test coverage detected