oa::SemanticGraph

Canonical semantic graph, deliberately independent of Vulkan objects.

StRust public API

Declaration

pub struct SemanticGraph { /* private fields */ }
Public Rust declaration.

Public Methods

pub fn add_value(&mut self, value: SemanticValueDesc) -> Result<SemanticValueId>
pub fn add_view( &mut self, source: SemanticValueId, view: SemanticValueId, byte_offset: i64, ) -> Result<()>
pub fn add_operation( &mut self, contract: OperationContract, inputs: &[Option<SemanticValueId>], outputs: &[SemanticValueId], control_dependencies: &[SemanticOpId], attributes: &[OpAttribute], ) -> Result<SemanticOpId>
pub fn attach_autograd( &mut self, forward_op: SemanticOpId, output_index: usize, sequence: u64, ) -> Result<()>
pub fn complete_autograd( &mut self, forward_op: SemanticOpId, sequence: u64, backward_first_op: SemanticOpId, backward_op_count: usize, ) -> Result<()>
pub fn validate(&self) -> Result<()>
pub fn copy_from(&mut self, source: &Self) -> Result<()>
pub fn find_value(&self, id: SemanticValueId) -> Option<&SemanticValueDesc>
pub fn values(&self) -> &[SemanticValueDesc]
pub fn operations(&self) -> &[SemanticOpDesc]
pub fn autograd(&self) -> &[SemanticAutogradDesc]
pub fn debug_report_json(&self, name: &str) -> String
pub fn view_count(&self) -> usize
pub const fn generation(&self) -> u64
pub fn reset(&mut self)
fn clone(&self) -> SemanticGraph
fn fmt(&self, f: &mut Formatter<'_>) -> Result

Associated Functions

pub const fn new() -> Self
fn default() -> Self

Public Method Documentation

pub fn add_value( &mut self, value: SemanticValueDesc ) -> Result<SemanticValueId>
No public source comment is attached to this declaration.
pub fn add_view( &mut self, source: SemanticValueId, view: SemanticValueId, byte_offset: i64, ) -> Result<()>
No public source comment is attached to this declaration.
pub fn add_operation( &mut self, contract: OperationContract, inputs: &[Option<SemanticValueId>], outputs: &[SemanticValueId], control_dependencies: &[SemanticOpId], attributes: &[OpAttribute] ) -> Result<SemanticOpId>
No public source comment is attached to this declaration.
pub fn attach_autograd( &mut self, forward_op: SemanticOpId, output_index: usize, sequence: u64, ) -> Result<()>
No public source comment is attached to this declaration.
pub fn complete_autograd( &mut self, forward_op: SemanticOpId, sequence: u64, backward_first_op: SemanticOpId, backward_op_count: usize, ) -> Result<()>
No public source comment is attached to this declaration.
pub fn validate(&self) -> Result<()>
No public source comment is attached to this declaration.
pub fn copy_from(&mut self, source: &Self) -> Result<()>
No public source comment is attached to this declaration.
pub fn find_value( &self, id: SemanticValueId ) -> Option<&SemanticValueDesc>
No public source comment is attached to this declaration.
pub fn values( &self ) -> &[SemanticValueDesc]
No public source comment is attached to this declaration.
pub fn operations( &self ) -> &[SemanticOpDesc]
No public source comment is attached to this declaration.
pub fn autograd( &self ) -> &[SemanticAutogradDesc]
No public source comment is attached to this declaration.
pub fn debug_report_json( &self, name: &str ) -> String
No public source comment is attached to this declaration.
pub fn view_count( &self ) -> usize
No public source comment is attached to this declaration.
pub const fn generation( &self ) -> u64
No public source comment is attached to this declaration.
pub fn reset( &mut self )
No public source comment is attached to this declaration.
fn clone( &self ) -> SemanticGraph
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
pub const fn new() -> Self
No public source comment is attached to this declaration.
fn default() -> Self
No public source comment is attached to this declaration.