Stay organized with collections Save and categorize content based on your preferences.

View source on GitHub

Partitioner to specify a fixed number of shards along given axis.

num_shards int, number of shards to partition variable.
axis int, axis to partition on.

A partition function usable as the partitioner argument to variable_scope and get_variable.