MCPcopy Create free account
hub / github.com/pytorch/tutorials / samples

Function samples

intermediate_source/char_rnn_generation_tutorial.py:410–412  ·  view source on GitHub ↗
(category, start_letters='ABC')

Source from the content-addressed store, hash-verified

408
409# Get multiple samples from one category and multiple starting letters
410def samples(category, start_letters='ABC'):
411 for start_letter in start_letters:
412 print(sample(category, start_letter))
413
414samples('Russian', 'RUS')
415

Callers 1

Calls 1

sampleFunction · 0.85

Tested by

no test coverage detected