Giter Club home page Giter Club logo

Comments (5)

luoyetx avatar luoyetx commented on June 1, 2024

It's the same as Official Caffe. Please refer to proposal_layer.hpp. The default data type is float.

from mini-caffe.

Li-Lai avatar Li-Lai commented on June 1, 2024

Thanks for your reply. If I use the code for classification task, then i need to get the final layer values (type: Softmax). The following code is right?
`
vector get_values(layer_values->count());

for (int i = 0; i < layer_values->count(); i++)

{

	float &get_value = get_values[i];

	get_value = layer_values->data_at(0, i, 0, 0);####?

	cout << "get_value:" << get_value << endl;

}

`

from mini-caffe.

luoyetx avatar luoyetx commented on June 1, 2024

Assume you have the net definition like below

layer {
  name: "prob-layer"
  type: "Softmax"
  bottom: "score"
  top: "prob"
}

Then you should get the output from Blob prob.

shared_ptr<Blob> prob = net->blob_by_name("prob");
for (int i = 0; i < prob->count(); i++) {
...
}

from mini-caffe.

luoyetx avatar luoyetx commented on June 1, 2024

@CBIR-LL For more details, Please refer to examples

from mini-caffe.

Li-Lai avatar Li-Lai commented on June 1, 2024

Thanks. I'll take a good look at your examples.

from mini-caffe.

Related Issues (20)

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.