Table Of Contents
Table Of Contents

mxnet.test_utils.same_array

mxnet.test_utils.same_array(array1, array2)[source]

Check whether two NDArrays sharing the same memory block

Parameters
  • array1 (NDArray) – First NDArray to be checked

  • array2 (NDArray) – Second NDArray to be checked

Returns

Whether two NDArrays share the same memory

Return type

bool