7 lines
No EOL
256 B
JavaScript
7 lines
No EOL
256 B
JavaScript
import * as tf from '@tensorflow/tfjs-core';
|
|
export function fullyConnectedLayer(x, params) {
|
|
return tf.tidy(function () {
|
|
return tf.add(tf.matMul(x, params.weights), params.bias);
|
|
});
|
|
}
|
|
//# sourceMappingURL=fullyConnectedLayer.js.map
|