@tensorflow/tfjs-layers
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -16,3 +16,3 @@ import { Tensor } from '@tensorflow/tfjs-core'; | ||
dataFormat?: DataFormat; | ||
dilationRate?: number | [number, number]; | ||
dilationRate?: number | [number] | [number, number]; | ||
activation?: string; | ||
@@ -35,3 +35,3 @@ useBias?: boolean; | ||
protected readonly dataFormat: DataFormat; | ||
protected readonly dilationRate: number | [number, number]; | ||
protected readonly dilationRate: number | [number] | [number, number]; | ||
protected readonly activation: ActivationFn; | ||
@@ -38,0 +38,0 @@ protected readonly useBias: boolean; |
@@ -47,5 +47,8 @@ "use strict"; | ||
_this.dilationRate = config.dilationRate == null ? 1 : config.dilationRate; | ||
if (_this.rank === 1 && Array.isArray(_this.dilationRate)) { | ||
throw new errors_1.ValueError("dilationRate must be a number for 1D convolution, but " + | ||
("received " + JSON.stringify(_this.dilationRate))); | ||
if (_this.rank === 1 && | ||
(Array.isArray(_this.dilationRate) && | ||
_this.dilationRate.length !== 1)) { | ||
throw new errors_1.ValueError("dilationRate must be a number or an array of a single number " + | ||
"for 1D convolution, but received " + | ||
("" + JSON.stringify(_this.dilationRate))); | ||
} | ||
@@ -52,0 +55,0 @@ if (_this.rank === 2) { |
@@ -1,2 +0,2 @@ | ||
declare const version = "0.4.0"; | ||
declare const version = "0.4.1"; | ||
export { version }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var version = '0.4.0'; | ||
var version = '0.4.1'; | ||
exports.version = version; |
@@ -1,6 +0,5 @@ | ||
GitHub issues for this repository are tracked in the [tfjs union | ||
repository](https://github.com/tensorflow/tfjs/issues). | ||
To get help from the community, check out our [Google group](https://groups.google.com/a/tensorflow.org/forum/#!forum/tfjs). | ||
Please file your issue there, following the guidance in [that issue | ||
template](https://github.com/tensorflow/tfjs/blob/master/ISSUE_TEMPLATE.md). | ||
Include a 'layers' tag to indicate that the issue is with tfjs-layers. | ||
GitHub issues for this repository are tracked in the [tfjs union repository](https://github.com/tensorflow/tfjs/issues). | ||
Please file your issue there, following the guidance in [that issue template](https://github.com/tensorflow/tfjs/blob/master/ISSUE_TEMPLATE.md). |
{ | ||
"name": "@tensorflow/tfjs-layers", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "TensorFlow layers API in JavaScript", | ||
@@ -45,4 +45,4 @@ "private": false, | ||
"peerDependencies": { | ||
"@tensorflow/tfjs-core": "0.6.1" | ||
"@tensorflow/tfjs-core": "0.7.1" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2228986
38315