代码拉取完成,页面将自动刷新
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.
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.Strategy | set_auto_parallel_context(parallel_mode=ParallelMode.DATA_PARALLEL) | diff |
TensorFlow 1.15 APIs | MindSpore APIs | Description |
---|---|---|
tf.io.decode_image | mindspore.dataset.vision.Decode | diff |
TensorFlow 1.15 APIs | MindSpore APIs | Description |
---|---|---|
tf.layers.Dense | mindspore.nn.Dense |
TensorFlow 1.15 APIs | MindSpore APIs | Description |
---|---|---|
tf.linalg.matmul | mindspore.nn.MatMul |
TensorFlow 1.15 APIs | MindSpore APIs | Description |
---|---|---|
tf.metrics.mean_iou | mindspore.ops.IOU |
TensorFlow 1.15 APIs | MindSpore APIs | Description |
---|---|---|
tf.random.gamma | mindspore.ops.Gamma | |
tf.random.uniform | mindspore.ops.uniform |
TensorFlow 1.15 APIs | MindSpore APIs | Description |
---|---|---|
tf.sparse.SparseTensor | mindspore.SparseTensor |
TensorFlow 1.15 APIs | MindSpore APIs | Description |
---|---|---|
tf.train.exponential_decay | mindspore.nn.ExponentialDecayLR | |
tf.train.linear_cosine_decay | mindspore.nn.CosineDecayLR | diff |
tf.train.MomentumOptimizer | mindspore.nn.Momentum | diff |
TensorFlow Probability 0.14.1 APIs | MindSpore APIs | Description |
---|---|---|
tfp.bijectors.Softplus | mindspore.nn.probability.bijector.Softplus | diff |
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。