deeplearnjs_facade 0.0.1

  • Installing
  • Versions
  • 44


Dart wrapper for deelearnjs

Most code generated by js_facade_gen.

The deepleanjs library will remain unchanged from the generate code except for necessary modifications to make it strong-mode clean. See the manual changes for an overview of changes made.

A more darty interface will eventually be written that does away with the need for things like allowInterop for function arguments, replaces promises with futures and adheres to the dart style guide.


See examples for dart ports of the typescipt examples.


  1. Port more examples
  2. Write dart interface that encapsulates js interop requirements



  • Initial version, created by Stagehand

1. Depend on it

Add this to your package's pubspec.yaml file:

  deeplearnjs_facade: "^0.0.1"

2. Install it

You can install packages from the command line:

with pub:

$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:deeplearnjs_facade/deeplearnjs_facade.dart';
Version Uploaded Documentation Archive
0.0.1 Aug 20, 2017 Go to the documentation of deeplearnjs_facade 0.0.1 Download deeplearnjs_facade 0.0.1 archive


This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • tool failures on Feb 16, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1


Describes how popular the package is relative to other packages. [more]
0 / 100
Code health derived from static analysis. [more]
90 / 100
Reflects how tidy and up-to-date the package is. [more]
85 / 100
Overall score:
Weighted score of the above. [more]


Detected platforms: web

Primary library: package:deeplearnjs_facade/deeplearnjs_facade.dart with components: html, js.


  • Fix lib/src/generated/math/webgl/logsumexp_gpu.dart.

    Strong-mode analysis of lib/src/generated/math/webgl/logsumexp_gpu.dart failed with the following error:

    line: 19 col: 7
    Missing concrete implementations of getter 'GPGPUProgram.supportsBroadcasting' and setter 'GPGPUProgram.supportsBroadcasting'.

  • Fix lib/src/generated/math/webgl/argminmax_gpu.dart.

    Strong-mode analysis of lib/src/generated/math/webgl/argminmax_gpu.dart failed with the following error:

    line: 23 col: 7
    Missing concrete implementations of getter 'GPGPUProgram.supportsBroadcasting' and setter 'GPGPUProgram.supportsBroadcasting'.

  • Fix further 9 Dart files.

    Similar analysis of the following files failed:

    • lib/src/generated/math/webgl/reducesum_gpu.dart
    • lib/src/generated/math/webgl/argmaxequals_gpu.dart
    • lib/src/generated/math/webgl/max_pool_backprop_gpu.dart
    • lib/src/generated/math/webgl/conv_gpu.dart
    • lib/src/generated/math/webgl/pool_gpu.dart
    • lib/src/generated/math/webgl/unaryop_gpu.dart
    • lib/src/generated/math/webgl/conv_backprop_gpu.dart
    • lib/src/generated/math/webgl/minmax_gpu.dart
    • lib/src/generated/math/webgl/mulmat_gpu.dart
  • Fix issues reported by dartanalyzer.

    dartanalyzer reported 3 error(s) and 0 warning(s).

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use deeplearnjs_facade.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.20.1 <2.0.0
func ^1.0.0 1.0.0
js ^0.6.0 0.6.1
Dev dependencies
browser >=0.10.0 <0.11.0
dart_to_js_script_rewriter ^1.0.1
test ^0.12.0