-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Conversation
…o test_large_vector
@ChaiBapchya only test cases to verify Large Vector are being added. Update the description and title accordingly |
Updated. @access2rohit |
@@ -742,7 +761,7 @@ def test_activation(): | |||
# Hyperbolic tangent (tanh) | |||
# y = (exp(x)-exp(-x))/(exp(x)+exp(-x)) | |||
a = mx.nd.Activation(a, act_type="tanh") | |||
tanh_x = (np.exp(-2)-np.exp(2))/(np.exp(-2)+np.exp(2)) | |||
tanh_x = (np.exp(test_x)-np.exp(-test_x))/(np.exp(test_x)+np.exp(-test_x)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: add space around operators. Do this across the entire file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PEP8 / pylint both didn't give error for this. I'll do it but is there some other linting tool apart from PEP8 and pylint?
If it's google style guide tool?
Is this the way to go?
https://stackoverflow.com/questions/29597618/is-there-a-tool-to-lint-python-based-on-the-google-style-guide
fa2de93
to
1e9349a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! LGTM. Since the current CI nightly pipeline is broken, please run through the tests using nosetests and paste the output here.
|
* add random ops * add shuffle to test large array * shape evaluation after value check * add log, exponent, power ops * fix sequence reverse issue in test_large_array and add sequence ops to test_large_vector * add binary arithmetic * fix lint, minor mistakes in large_array; add nn op to tensor * Trigger notification coz of test_operator.test_laop_6 error * Trigger notification coz of test_operator.test_laop_6 error * Trigger notification bcoz R failures * address comments * normal distribution assert statement fix; randint dtype check * correct layernorm and shuffle * layer norm numpy flaky hence removed, dropout shape fix * comment not working ops * fix multi * Trigger notification * fix seq reverse, uncomment seq mask as it works * index fix and uncomment test * index fix * seq_reverse index fix * uncomment seq reverse test and handle static typecasts * removing commented ops * resolve merge conflict * teardown, lint, remove redundant functions * fix shape assertions and randint low,high * remove waits, add teardown to large_array, change randint assert in large array
* add random ops * add shuffle to test large array * shape evaluation after value check * add log, exponent, power ops * fix sequence reverse issue in test_large_array and add sequence ops to test_large_vector * add binary arithmetic * fix lint, minor mistakes in large_array; add nn op to tensor * Trigger notification coz of test_operator.test_laop_6 error * Trigger notification coz of test_operator.test_laop_6 error * Trigger notification bcoz R failures * address comments * normal distribution assert statement fix; randint dtype check * correct layernorm and shuffle * layer norm numpy flaky hence removed, dropout shape fix * comment not working ops * fix multi * Trigger notification * fix seq reverse, uncomment seq mask as it works * index fix and uncomment test * index fix * seq_reverse index fix * uncomment seq reverse test and handle static typecasts * removing commented ops * resolve merge conflict * teardown, lint, remove redundant functions * fix shape assertions and randint low,high * remove waits, add teardown to large_array, change randint assert in large array
* add random ops * add shuffle to test large array * shape evaluation after value check * add log, exponent, power ops * fix sequence reverse issue in test_large_array and add sequence ops to test_large_vector * add binary arithmetic * fix lint, minor mistakes in large_array; add nn op to tensor * Trigger notification coz of test_operator.test_laop_6 error * Trigger notification coz of test_operator.test_laop_6 error * Trigger notification bcoz R failures * address comments * normal distribution assert statement fix; randint dtype check * correct layernorm and shuffle * layer norm numpy flaky hence removed, dropout shape fix * comment not working ops * fix multi * Trigger notification * fix seq reverse, uncomment seq mask as it works * index fix and uncomment test * index fix * seq_reverse index fix * uncomment seq reverse test and handle static typecasts * removing commented ops * resolve merge conflict * teardown, lint, remove redundant functions * fix shape assertions and randint low,high * remove waits, add teardown to large_array, change randint assert in large array
* add random ops * add shuffle to test large array * shape evaluation after value check * add log, exponent, power ops * fix sequence reverse issue in test_large_array and add sequence ops to test_large_vector * add binary arithmetic * fix lint, minor mistakes in large_array; add nn op to tensor * Trigger notification coz of test_operator.test_laop_6 error * Trigger notification coz of test_operator.test_laop_6 error * Trigger notification bcoz R failures * address comments * normal distribution assert statement fix; randint dtype check * correct layernorm and shuffle * layer norm numpy flaky hence removed, dropout shape fix * comment not working ops * fix multi * Trigger notification * fix seq reverse, uncomment seq mask as it works * index fix and uncomment test * index fix * seq_reverse index fix * uncomment seq reverse test and handle static typecasts * removing commented ops * resolve merge conflict * teardown, lint, remove redundant functions * fix shape assertions and randint low,high * remove waits, add teardown to large_array, change randint assert in large array
* add random ops * add shuffle to test large array * shape evaluation after value check * add log, exponent, power ops * fix sequence reverse issue in test_large_array and add sequence ops to test_large_vector * add binary arithmetic * fix lint, minor mistakes in large_array; add nn op to tensor * Trigger notification coz of test_operator.test_laop_6 error * Trigger notification coz of test_operator.test_laop_6 error * Trigger notification bcoz R failures * address comments * normal distribution assert statement fix; randint dtype check * correct layernorm and shuffle * layer norm numpy flaky hence removed, dropout shape fix * comment not working ops * fix multi * Trigger notification * fix seq reverse, uncomment seq mask as it works * index fix and uncomment test * index fix * seq_reverse index fix * uncomment seq reverse test and handle static typecasts * removing commented ops * resolve merge conflict * teardown, lint, remove redundant functions * fix shape assertions and randint low,high * remove waits, add teardown to large_array, change randint assert in large array
Description
Added test for large vector for following ops
add
,sub
,rsub
,neg
,mul
,div
,rdiv
,mod
,rmod
,imod
,pow
LayerNorm
andBatchNorm
sequence_last
,sequence_reverse
, `sequence_mask``exp
,expm1
,log
,log2
,log10
,log1p
sqrt
,rsqrt
,cbrt
,rcbrt
,square
,reciprocal
random.exponential
,random.gamma
,random.generalized_negative_binomial
,random.multinomial
,random.negative_binomial
,random.normal
,random.poisson
,random.randn
Minor changes to large tensor array op
Fix indexing issue for
sequence_last
,sequence_reverse
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.