GithubHelp home page GithubHelp logo

dnntoolbox / net-trim Goto Github PK

View Code? Open in Web Editor NEW
24.0 1.0 7.0 1.1 MB

The latest version of Net-Trim which solves the actual constrained problem

Home Page: https://dnntoolbox.github.io/Net-Trim/

Python 100.00%

net-trim's Introduction

net-trim's People

Contributors

dnntoolbox avatar

Stargazers

 avatar  avatar Luis Balderas Ruiz avatar Bjørn Harald Fotland avatar Tadashi avatar Conner Vercellino avatar  avatar Vishwa Parekh avatar yushiqiu avatar  avatar keil avatar Daniel Baker avatar Matthew Clemens avatar Dongkwan Kim avatar Yang avatar Phung Cheng Fei avatar Ruizhe Zhao avatar  avatar  avatar menorki manil avatar Heping Song avatar  avatar Emre Şafak avatar Jiang Jing Yan avatar

Watchers

Tadashi avatar

net-trim's Issues

Error when run ConvNetTrimSolver_tf.py

I ran the code of first part of II.1. Retraining the Convolutional Layers
(https://dnntoolbox.github.io/Net-Trim/#ii-net-trim-code-step-by-step-demo)
Error occurs in the line:
W_nt = nt_conv.run(x, y, V, b, W.shape, epsilon, rho=2, num_iterations=max_iterations)

Error message:
InvalidArgumentError: filter must be 4-dimensional: [128]
[[Node: Conv2D = Conv2D[T=DT_FLOAT, data_format="NHWC", padding="SAME", strides=[1, 1, 1, 1], use_cudnn_on_gpu=true, _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_Placeholder_0_0, _arg_Placeholder_7_0_7)]]

And I checked the arguments:
x shape = (20, 60, 60, 256)
y shape = (20, 60, 60, 256)
V shape = (20, 60, 60, 256)
b shape = (20, 60, 60, 256)
W shape = (20, 60, 60, 256)

I have no idea what wrong is.
Appreciate your help!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.