MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _convert_slice

Function _convert_slice

tensorflow/python/ops/parallel_for/pfor.py:1866–1872  ·  view source on GitHub ↗
(pfor_input)

Source from the content-addressed store, hash-verified

1864
1865@RegisterPFor("Slice")
1866def _convert_slice(pfor_input):
1867 t = pfor_input.stacked_input(0)
1868 begin = pfor_input.unstacked_input(1)
1869 size = pfor_input.unstacked_input(2)
1870 begin = array_ops.concat([[0], begin], axis=0)
1871 size = array_ops.concat([[-1], size], axis=0)
1872 return wrap(array_ops.slice(t, begin, size), True)
1873
1874
1875@RegisterPFor("Tile")

Callers

nothing calls this directly

Calls 5

stacked_inputMethod · 0.80
unstacked_inputMethod · 0.80
sliceMethod · 0.80
wrapFunction · 0.70
concatMethod · 0.45

Tested by

no test coverage detected