* Added np.diag as mxnet operator, WIP
Done:
2d input forward pass
Missing:
1d input forward
all backward
* Added a simple gradient transfer backwards operator for diag
Fixed small typos as well
* Finished backward operation
* Added full support for k
* Finished added the 1D case to the diag operator
Finished function documentation
Added unit tests
* Fixed cpplinter errors in the diag operator
Issues were extra white spaces and include order
* Fixed indentation in diag_op-inl.h
* Changed diag operator tests to use np.diag() as comparison
* Fixed kernel bug in gpu diag operator
* Replaced the min operator with an inline if statement.
* Added diag to ndarray and symbol
* Replaced the type of parameter k from int32 to nnvm::dim
* Added default argument to k in ndarray and symbol
* Fixed ndarray and symbol diag calls
* Fixed the optional k parameter
* Fixed cpp linting error
* Changed test data datatype to float32
* K values resulting into 0-sized diagonals will now throw an exception.
Added matching test case
* Fixed unittest
* Added diag to NDArray and Symbol api doc
* Added missing api doc
* Shape Operator
* cuda
* size op
* lint issues
* docs example
* add docs, change op name to avoid conflict, add convenience confluent
method
* change name to _nd
* fix test cases, add new kernel
* test name fix.
* solve gpu memory problem for size and shape
* get rid of FIgnoreInputs attr of shape_nd
* op name change
* fix
* retrigger CI
* retrigger CI
* retrigger CI
* trigger CI
* fix comments
* cpplint
* nit
* trigger CI