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.distribute
TensorFlow 1.15 APIs |
MindSpore APIs |
Description |
---|---|---|
context.set_auto_parallel_context(parallel_mode=ParallelMode.DATA_PARALLEL) |
tf.image
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 |
---|---|---|