forked from OSSInnovation/mindspore
optimize the example in connect_network_with_dataset
This commit is contained in:
parent
c000ffd809
commit
4d3f294cb1
|
@ -61,7 +61,7 @@ def connect_network_with_dataset(network, dataset_helper):
|
|||
Examples:
|
||||
>>> # call create_dataset function to create a regular dataset, refer to mindspore.dataset
|
||||
>>> train_dataset = create_dataset()
|
||||
>>> dataset_helper = mindspore.DatasetHelper(train_dataset)
|
||||
>>> dataset_helper = mindspore.DatasetHelper(train_dataset, dataset_sink_mode=True)
|
||||
>>> net = Net()
|
||||
>>> net_with_get_next = connect_network_with_dataset(net, dataset_helper)
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue