Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
HMM Model
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommliu committed Jan 9, 2020
1 parent 4ff1c67 commit 3cd037e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion python/mxnet/numpy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import numpy as onp

__all__ = ['float16', 'float32', 'float64', 'uint8', 'int32', 'int8', 'int64',
'bool', 'bool_', 'pi', 'inf', 'nan', 'PZERO', 'NZERO', 'newaxis']
'bool', 'bool_', 'pi', 'inf', 'nan', 'PZERO', 'NZERO', 'newaxis', 'finfo']

float16 = onp.float16
float32 = onp.float32
Expand All @@ -42,3 +42,4 @@
NZERO = onp.NZERO

newaxis = None
finfo = onp.finfo
2 changes: 1 addition & 1 deletion src/operator/tensor/broadcast_reduce_op.h
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ void SearchAxisCompute(const nnvm::NodeAttrs& attrs,
}
if (input.shape_.Size() == 0U) return; // zero-size tensor
mxnet::TShape shape = AxisShapeCompact(input.shape_, &axis, false);
MSHADOW_REAL_TYPE_SWITCH(outputs[0].type_flag_, DType, {
MSHADOW_TYPE_SWITCH(inputs[0].type_flag_, DType, {
Tensor<xpu, 2, DType> out = outputs[0].get_with_shape<xpu, 2, DType>(
Shape2(shape[0], shape[2]), s);
Tensor<xpu, 3, DType> in = input.get_with_shape<xpu, 3, DType>(
Expand Down

0 comments on commit 3cd037e

Please sign in to comment.