This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mxnet as mx | |
from mxnet import nd | |
a = nd.array([-2,1], ctx=mx.gpu(0)) | |
print(a) | |
# first record will be nan on windows | |
print(nd.power(a,2)) | |
# first record will be nan on windows |