TensorFlow and MindSpore API Mapping Table
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.
TensorFlow 2.6
tf
TensorFlow 2.6 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
Consistent |
||
The functions are consistent, but the parameter names are inconsistent. |
||
Consistent |
||
Consistent |
||
The functions are consistent, but the parameter names are inconsistent. |
||
The functions are consistent, but the parameter names are inconsistent. |
||
Consistent |
||
The functions are consistent, but the parameter names are inconsistent. |
||
The functions are consistent, but the parameter names are inconsistent. |
||
The functions are consistent, but the parameter names are inconsistent. |
||
Consistent |
||
Consistent |
||
The functions are consistent, but the parameter names are inconsistent. |
||
The functions are consistent, but the parameter names are inconsistent. |
||
The functions are consistent, but the parameter names are inconsistent. |
||
The functions are consistent, but the parameter names are inconsistent. |
||
The functions are consistent, but the parameter names are inconsistent. |
||
The functions are consistent, but the parameter names are inconsistent. |
||
Consistent |
||
The functions are consistent, but the parameter names are inconsistent. |
||
The functions are consistent, but the parameter names are inconsistent. |
tf.compat.v1
TensorFlow 2.6 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
The functions are consistent, but the parameter names are inconsistent. |
||
The functions are consistent, but the parameter names are inconsistent. |
||
The functions are consistent, but the parameter names are inconsistent. |
||
The functions are consistent, but the parameter names are inconsistent. |
||
The functions are consistent, but the parameter names are inconsistent. |
||
The functions are consistent, but the parameter names are inconsistent. |
||
The functions are consistent, but the parameter names are inconsistent. |
||
The functions are consistent, but the parameter names are inconsistent. |
||
The functions are consistent, but the parameter names are inconsistent. |
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 2.6 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
tf.math
TensorFlow 2.6 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
Consistent |
||
Consistent |
||
Consistent |
||
Consistent |
||
The functions are consistent, but the parameter names are inconsistent. |
||
Consistent |
||
Consistent |
||
Consistent |
||
Consistent |
||
Consistent |
||
Consistent |
||
Consistent |
||
Consistent |
||
The functions are consistent, but the parameter names are inconsistent. |
||
The functions are consistent, but the parameter names are inconsistent. |
||
The functions are consistent, but the parameter names are inconsistent. |
||
The functions are consistent, but the parameter names are inconsistent. |
||
Consistent |
tf.image
TensorFlow 2.6 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
tf.keras
TensorFlow 2.6 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
Consistent |
tf.nn
TensorFlow 2.6 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
TensorFlow 1.15
tf
TensorFlow 1.15 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
tf.io
TensorFlow 1.15 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
tf.keras
TensorFlow 1.15 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
tf.keras.metrics.Accuracy |
||
tf.linalg
TensorFlow 1.15 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
tf.math
TensorFlow 1.15 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
tf.metrics
TensorFlow 1.15 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
tf.nn
TensorFlow 1.15 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
tf.random
TensorFlow 1.15 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
tf.sparse
TensorFlow 1.15 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
tfp
TensorFlow Probability 0.14.1 APIs |
MindSpore APIs |
Descriptions |
---|---|---|