Coder Social home page Coder Social logo

dezero's People

Contributors

matonix avatar

Watchers

 avatar  avatar

dezero's Issues

unwrap フリーにする

使用箇所:

  • main の test 関数
  • 各Functionのpub fn backward内→そもそもこれらは不要?

Step 9.3 ndarray だけを扱う

as is

type Data = Array0<f64>;
  • 諸実装がArrayの関数に依存

to be

  • type Data を廃止し、多相型による実装に変更
  • ndarray に由来する関数群に直接依存しない
  • dezero がサポートするプリミティブな操作をトレイト(Tensor)として提供する
  • ndarray の配列 struct に対し Tensor の impl をする

Step 12.2 可変長引数を用いた実装

as is

fn forward_body(x: Vec<Data>) -> Vec<Data>;
fn backward_body(x: Vec<Data>, gy: Vec<Data>) -> Vec<Data>;

のように常に任意の長さを想定した実装

to be

fn forward_body(x: Data, y: Data) -> Data;
fn backward_body(x: Data, gy: Data) -> [Data; 2];

のように実装対象によって柔軟にデータの型を変化できる実装。

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.