TensorFlow and MindSpore
Mapping between TensorFlow APIs and MindSpore APIs, which is provided by the community. There may be differences in parameters, inputs, outputs, logic functions, and specific scenarios. For details, see the description of each API or the difference comparison provided.
More MindSpore developers are also welcome to participate in improving the mapping content.
tf
TensorFlow 1.15 APIs |
MindSpore APIs |
Description |
---|---|---|
tf.data
Many data processing operations in MindSpore are shared by each dataset class. The following uses ImageFolderDataset
and CSVDataset
as examples to compare the API differences, and other dataset classes are the same.
TensorFlow 1.15 APIs |
MindSpore APIs |
Description |
---|---|---|
tf.distribute
TensorFlow 1.15 APIs |
MindSpore APIs |
Description |
---|---|---|
set_auto_parallel_context(parallel_mode=ParallelMode.DATA_PARALLEL) |
tf.image
TensorFlow 1.15 APIs |
MindSpore APIs |
Description |
---|---|---|
tf.io
TensorFlow 1.15 APIs |
MindSpore APIs |
Description |
---|---|---|
tf.keras
TensorFlow 1.15 APIs |
MindSpore APIs |
Description |
---|---|---|
tf.layers
TensorFlow 1.15 APIs |
MindSpore APIs |
Description |
---|---|---|
tf.linalg
TensorFlow 1.15 APIs |
MindSpore APIs |
Description |
---|---|---|
tf.math
TensorFlow 1.15 APIs |
MindSpore APIs |
Description |
---|---|---|
tf.metrics
TensorFlow 1.15 APIs |
MindSpore APIs |
Description |
---|---|---|
tf.nn
TensorFlow 1.15 APIs |
MindSpore APIs |
Description |
---|---|---|
tf.random
TensorFlow 1.15 APIs |
MindSpore APIs |
Description |
---|---|---|
tf.sparse
TensorFlow 1.15 APIs |
MindSpore APIs |
Description |
---|---|---|
tf.train
TensorFlow 1.15 APIs |
MindSpore APIs |
Description |
---|---|---|
tfp
TensorFlow Probability 0.14.1 APIs |
MindSpore APIs |
Description |
---|---|---|