CNTK icon indicating copy to clipboard operation
CNTK copied to clipboard

no select_last() function

Open kylemarkwilliams opened this issue 9 years ago • 4 comments

The Python Layers API documentation describes a select_last() function; however, I cannot find this function anywhere. Also, is there a select_first() function?

kylemarkwilliams avatar Mar 29 '17 23:03 kylemarkwilliams

I also don't find select_last. But I find you can use Fold layer. and don't need use Recurrent.

whaozl avatar Mar 30 '17 10:03 whaozl

Is cntk.ops.sequence.last what you're looking for?

Ark-kun avatar Mar 31 '17 03:03 Ark-kun

I guess they've just forgotten to update the example. The former implementation was here: Note: the files in the 'common' folder are deprecated and will be replaced by the layer library. select_last() at line 69.

main76 avatar Mar 31 '17 06:03 main76

@Ark-kun Yes, last does the trick as does the Fold layer suggested by @whaozl.

Thanks

kylemarkwilliams avatar Apr 01 '17 01:04 kylemarkwilliams