Skip to content

Translate Nodes to Inherit from an "ISPNGNode" (Can think of a better name) #21

@calcuttj

Description

@calcuttj

This will be a class to be inherited by SPNG Nodes. It can serve several purposes

  1. Determining if the necessary TorchTensors exist within the input TorchTensorSet
  2. Stripping away any irrelevant TorchTensors within the input
  3. Batching/unsqueezing the TorchTensors if necessary
  4. Communicating with the Device interface
  5. Communicating with the Semaphore
class ISPNGNode: 

virtual bool operator()(const input_pointer& in, output_pointer& out) final;
virtual bool execute()(const input_pointer& in, output_pointer & out) = 0; //Pure virtual -- must be implemented by concrete class
...

bool operator()(const input_pointer& in, output_pointer& out) {
  ...common_operations...
   execute(...)
  ...common_operations...
} 

Metadata

Metadata

Assignees

No one assigned

    Labels

    TDMSPNG tensor data model

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions