GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Packages
  • Classes
  • Files
  • C++ API
  • GitHub
  • Class Index
  • Class Hierarchy
  • Class Members
  • cpp
  • OrderedDictWrapper
  • cpp.py

This view

  • Original page
  • New address

GeezerVison is showing caffe2.ai — Caffe2 - Python API: torch.nn.cpp.OrderedDictWrapper Class Reference

Logo
Caffe2 - Python API
A deep learning, cross platform ML framework
  • Packages
  • Classes
  • Files
  • C++ API
  • Python API
  • GitHub
  • Class List
  • Class Index
  • Class Hierarchy
  • Class Members
  • torch
  • nn
  • cpp
  • OrderedDictWrapper
Public Member Functions | Public Attributes | List of all members
torch.nn.cpp.OrderedDictWrapper Class Reference
Inheritance diagram for torch.nn.cpp.OrderedDictWrapper:

Public Member Functions

def __init__ (self, cpp_module, attr)
 
def cpp_dict (self)
 
def items (self)
 
def keys (self)
 
def values (self)
 
def __iter__ (self)
 
def __len__ (self)
 
def __contains__ (self, key)
 
def __getitem__ (self, key)
 

Public Attributes

 cpp_module
 
 attr
 

Detailed Description

A wrapper around a C++ OrderedDict that dynamically evaluates the
OrderedDict getter on a bound C++ module, such that new changes on the C++
side are picked up. Otherwise accessing e.g. ``cpp_module._parameters`` just
once would get a frozen copy of the parameters at the time of access.
``torch.nn.Module`` accesses ``_parameters`` et al. via ``self.__dict__`` so
using properties does not work.

Definition at line 6 of file cpp.py.


The documentation for this class was generated from the following file:
  • torch/nn/cpp.py

Generated on Thu Mar 21 2019 13:06:39 for Caffe2 - Python API by   doxygen 1.8.11

Facebook Open Source

Open Source Projects GitHub Twitter
Contribute to this project on GitHub
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.