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

Function slice

tensorflow/compiler/tf2xla/python/xla.py:393–398  ·  view source on GitHub ↗
(x, start_dims, limit_dims, strides)

Source from the content-addressed store, hash-verified

391
392
393def slice(x, start_dims, limit_dims, strides):
394 spec = [
395 _slice(start, limit, stride)
396 for (start, limit, stride) in zip(start_dims, limit_dims, strides)
397 ]
398 return x[tuple(spec)]
399
400
401sort = gen_xla_ops.xla_sort

Callers 15

assign_from_checkpointFunction · 0.50
_gen_slicesFunction · 0.50
__init__Method · 0.50
test_sliceMethod · 0.50
test_slicesMethod · 0.50
test_invalid_inputMethod · 0.50
setUpMethod · 0.50
slice_functionFunction · 0.50
selectFunction · 0.50
test_sliceMethod · 0.50
test_slicesMethod · 0.50
test_slice_unlabeledMethod · 0.50

Calls 1

tupleFunction · 0.85

Tested by 13

test_sliceMethod · 0.40
test_slicesMethod · 0.40
test_invalid_inputMethod · 0.40
setUpMethod · 0.40
test_sliceMethod · 0.40
test_slicesMethod · 0.40
test_slice_unlabeledMethod · 0.40
_AssertReverseEqualMethod · 0.40
numpy_reverseFunction · 0.40
handle_optionsFunction · 0.40
_testRandomMethod · 0.40