Hello everyone,
I have some issues running my project for JS with webpack.
I use kingerence: inference-tfjs:0.2.21 and
io.kingerence: adapter-mutlik-core-js: 0.2.21
The thing is:
If i build using ./gradlew BrowserDevelopmentWebpack - all works fine
If I do ./gradlew BrowserProductionWebpack - I have an issue when I run predict function from
io.kinference.model
and here is the function were the error happens. On that line:
tmp_0.b77_1 = tmp_1 instanceof NumberNDArrayTFJS ? tmp_1 : THROW_CCE();
protoOf($applyCOROUTINE$88).sc = function () {
var suspendResult = this.hc_1;
$sm: do
try {
var tmp = this.fc_1;
switch (tmp) {
case 0:
this.gc_1 = 2;
var tmp_0 = this;
var tmp_1 = ensureNotNull(this.a77_1.g1(0)).u40_1;
tmp_0.b77_1 = tmp_1 instanceof NumberNDArrayTFJS ? tmp_1 : THROW_CCE();
this.fc_1 = 1;
suspendResult = tidyNDArray(TreeEnsembleRegressorVer1$apply$slambda_0(this.y76_1, this.b77_1, null), this);
if (suspendResult === get_COROUTINE_SUSPENDED()) {
return suspendResult;
}
continue $sm;
case 1:
var output = suspendResult;
return listOf(asTensor(output, 'Y'));
case 2:
throw this.ic_1;
}
} catch ($p) {
var e = $p;
if (this.gc_1 === 2) {
throw e;
} else {
this.fc_1 = this.gc_1;
this.ic_1 = e;
}
}
while (true);
};
does anyone faced that issue?
Thanks