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 |
---|---|---|
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
tf.compat.v1
TensorFlow 2.6 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
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 |
---|---|---|
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
tf.image
TensorFlow 2.6 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
Difference comparison is under development. |
tf.keras
TensorFlow 2.6 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
tf.nn
TensorFlow 2.6 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development.) |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
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 |
---|---|---|
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
tf.keras.metrics.Accuracy |
Difference comparison is under development. |
|
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
tf.layers
TensorFlow 1.15 APIs |
MindSpore APIs |
Descriptions |
---|
tf.linalg
TensorFlow 1.15 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
tf.math
TensorFlow 1.15 APIs |
MindSpore APIs |
Descriptions |
---|---|---|
Difference comparison is under development. |
||
Difference comparison is under development. |
||
Difference comparison is under development. |
||
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 |
---|---|---|
tf.train
TensorFlow 1.15 APIs |
MindSpore APIs |
Descriptions |
---|
tfp
TensorFlow Probability 0.14.1 APIs |
MindSpore APIs |
Descriptions |
---|---|---|