Failed to convert Tensorflow .pd to json - tensorflow.js

Trying to convert the saved model to json for tensorflow js. Followed the example from https://github.com/tensorflow/tfjs/tree/master/tfjs-converter
Version:
tensorflowjs 1.2.9
Dependency versions:
keras 2.2.4-tf
tensorflow 1.14.0
Ran this cmd:
tensorflowjs_converter --input_format=tf_saved_model --output_format=tfjs_graph_model --signature_name=serving_default --saved_model_tags=serve /saved_model /web_model
Having this error message while running the code:
F .\tensorflow/core/grappler/graph_view.h:332] Check failed: st.ok() Non unique node name detected: SecondStageFeatureExtractor/InceptionV2/Mixed_5c/Branch_2/Conv2d_0c_3x3/weights

You can try the latest converter version 1.3.1.1
I believe the issue has been fixed.
https://github.com/tensorflow/tfjs/issues/2055

It seems that the converter only works on Google Colab without any issue. Thanks everyone for the input.

Related

How do add Quandl package to Julia

I'm trying to add the Quandl package (query finance and economic data) like this:
using Pkg
Pkg.add("Quandl")
which gets me this:
Updating registry at ~/.julia/registries/General
Updating git-repohttps://github.com/JuliaRegistries/General.git`
[1mFetching: [========================================>] 100.0 %[==========> ] 23.3 %] 46.4 % %> ] 90.2 %
The following package names could not be resolved:
* Quandl (not found in project, manifest or registry)
Anyone know what's going on here? Am I doing something wrong or is there a problem with the package?
The error message is telling you that Quandl is not registered in Julia's general registry, and can therefore not be added directly by typing it's name in the package manager.
You can still add it from its URL, are you referring to this package:
https://github.com/milktrader/Quandl.jl?
If so you can do Pkg.add("https://github.com/milktrader/Quandl.jl") to add it from GitHub.
It looks however like the package is unmaintained, as it hasn't been updated for three years, and therefore is unlikely to work with Julia versions post 1.0.
If it turns out it doesn't work but you need the package, you can try installing Julia 0.7, which can give you deprecation warnings to tell you about the syntax changes to get it to work with Julia 1.0+.

Error: Property left of ForInStatement is null?

yesterday I was able to create my react babylon app with react-scripts. After updating babylon to 4.1.0 I receive the following error:
./node_modules/babylonjs/babylon.js TypeError:
/git/proconf_sa/node_modules/babylonjs/babylon.js: Property left of ForInStatement expected node to be of a type [“VariableDeclaration”,“LVal”] but instead got null
Any idea what the problem could be? I updated from version 3.1.0-alpha3.7.
Thanks.
I was facing the same problem, however using Angular. I resolved by removing a package that uses svg.js#2.7.1 !!! From what you discover, this error is caused by the discontinued version of svg.js#2.7.1 !!! Look inside your application that there is a package using this and remove it!
If using apexcharts update it, because it depends on svg.js!
(NOTE: Sorry for possible errors in my writing, I'm Brazilian, I'm having to use Google translator to write this)

Rails 5.1.5 upgrade causes - uninitialized constant Mime::JSON

Whenever a controller renders json I get,
uninitialized constant Mime::JSON
I have not modified any code related to this.
Ex, the code for this controller method that throws the error:
def names
#families = Family.pluck(:name)
render json: #families
end
This was working fine before the rails 5 upgrade.
In my case, it was jbuilder causing this error.
Upgrading jbuilder to latest (2.7.0 at time of writing) solved this. The old jbuilder references JSON wrong and causes responder to fail.
I was obtaining the error after upgrade from rails 5.0.1 to 5.1.0 and in my case the gem 'web-console','~> 2.0' was causing the error, I solved it updating it to gem 'web-console','>= 3.3.0'.

How to properly implement PHPWord to CakePHP?

I am trying to generate a word document using phpword through cakephp but I always get a fatal error:
Error: Class 'PhpOffice\PhpWord\TemplateProcessor' not found
File:C:\xampp\htdocs\thesis\app\Controller\MainController.php
Line: 1016
line 1016:
$templateProcessor = new \PhpOffice\PhpWord\TemplateProcessor('resources/Sample_07_TemplateCloneRow.docx');
I placed the phpword files in this path:
C:\xampp\htdocs\thesis\app\Vendor
And the docx file here:
C:\xampp\htdocs\thesis\app\Vendor\PhpWord\resources
Is there anything wrong on how I implemented phpword with cakephp?
Thank you.
I think you should install PHPWord through Composer as CakePHP is using Composer to manage its dependancies.

PageableManagerInterface error in SonataAdminBundle

I'm trying to configure SonataAdminBundle and SonataUserBundle to use mongodb and am getting the following error:
ClassNotFoundException: Attempted to load interface "PageableManagerInterface" from namespace "Sonata\CoreBundle\Model" in /Users/me/Sites/mynamespace-webtools/vendor/sonata-project/user-bundle/Model/UserManagerInterface.php line 25. Do you need to "use" it from another namespace?
Can anyone shed any light on what might be causing this? I was also getting the symptoms described here and have tried the answers suggested there.
Can anyone confirm if the mongodb functionality is just broken? Am also wondering if this error relates to this commit?
This appears to be a dependency error within the Sonata system itself, and not strictly related to the MongoDB module.
The PageableManagerInterface class is provided by the Sonata Core Bundle. Make sure that you have it in your composer.json file:
"require": {
"sonata-project/core-bundle": "dev-master",
}
After that, make sure your install is up to date and clean your cache, as usual:
php composer.phar self-update ; php composer.phar update

Resources