This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
[Numpy] unknown type_flag=7 #17638
Labels
Comments
looking into it. thanks for reporting. |
I find it could be further simplified: import mxnet as mx
import numpy as np
from numpy.testing import assert_allclose
from mxnet.gluon import HybridBlock
mx.npx.set_np()
class Foo(HybridBlock):
def __init__(self, prefix=None, params=None):
super(Foo, self).__init__(prefix=prefix, params=params)
def hybrid_forward(self, F, valid_length):
mask = (F.np.ones((10,)) < valid_length).astype(np.float32)
return mask
foo = Foo()
foo.hybridize()
out = foo(mx.np.ones((10,), ctx=mx.gpu()))
print(out) |
import mxnet as mx
import numpy as np
import os
from numpy.testing import assert_allclose
from mxnet.gluon import HybridBlock
mx.npx.set_np()
os.environ['DMLC_LOG_STACK_TRACE_DEPTH'] = '30'
class Foo(HybridBlock):
def __init__(self, prefix=None, params=None):
super(Foo, self).__init__(prefix=prefix, params=params)
def hybrid_forward(self, F, valid_length):
mask = (F.np.ones((10,)) < valid_length).astype(np.float32)
return mask
foo = Foo()
foo.hybridize()
out = foo(mx.np.ones((10,), ctx=mx.gpu()))
print(out)
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
A series of issues related to
kBool
occured afther the pull #17438 and #4571 in tvm. This is, after all, a serious problem that makes many of deep numpy's features unusable.Here is a simple error case.
Error Message
To Reproduce
Comments
@sxjscience @yzhliu
The text was updated successfully, but these errors were encountered: