PandA-2024.02
Data Structures | Macros | Functions
backprop.h File Reference
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "../../common/support.h"
Include dependency graph for backprop.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  bench_args_t
 

Macros

#define input_dimension   13
 
#define possible_outputs   3
 
#define training_sets   163
 
#define nodes_per_layer   64
 
#define layers   2
 
#define learning_rate   0.01
 
#define epochs   1
 
#define test_sets   15
 
#define norm_param   0.005
 
#define max   1.0
 
#define offset   0.5
 
#define TYPE   double
 
#define MAX   1000
 
#define MIN   1
 

Functions

void backprop (TYPE weights1[input_dimension *nodes_per_layer], TYPE weights2[nodes_per_layer *nodes_per_layer], TYPE weights3[nodes_per_layer *possible_outputs], TYPE biases1[nodes_per_layer], TYPE biases2[nodes_per_layer], TYPE biases3[possible_outputs], TYPE training_data[training_sets *input_dimension], TYPE training_targets[training_sets *possible_outputs])
 

Macro Definition Documentation

◆ epochs

#define epochs   1

Definition at line 13 of file backprop.h.

◆ input_dimension

#define input_dimension   13

◆ layers

#define layers   2

Definition at line 11 of file backprop.h.

◆ learning_rate

#define learning_rate   0.01

Definition at line 12 of file backprop.h.

Referenced by update_weights().

◆ max

#define max   1.0

Definition at line 17 of file backprop.h.

Referenced by Range::abs(), AbsControlStep::AbsControlStep(), tree_helper::AccessedMaximumBitsize(), Range::add(), ASLAP::add_constraints_to_ALAP(), ASLAP::add_constraints_to_ASAP(), coloring_based_clique_covering< vertex_type >::add_edge(), bipartite_matching_clique_covering< vertex_type >::add_edge(), memory::add_external_symbol(), memory::add_internal_symbol(), memory::add_parameter_symbol(), bipartite_matching_clique_covering< vertex_type >::add_subpartitions(), fu_binding::add_to_SM(), module_interface::AddConstant(), RTLCharacterization::AnalyzeCell(), Bit_Value::backward_transfer(), lut_transformation::CHECK_BIN_EXPR_INT_SIZE(), simple_code_motion::CheckMovable(), AllocationInformation::Clear(), bipartite_matching_clique_covering< vertex_type >::color_the_cc_compatibility_graph(), ASLAP::compute_ALAP_worst_case(), compute_edge_increments(), parametric_list_based::compute_exec_stage_time(), parametric_list_based::compute_starting_ending_time_asap(), StateTransitionGraphManager::ComputeCyclesCount(), compatibility_based_register::create_compatibility_graph(), conflict_based_register::create_conflict_graph(), tree_manipulation::CreateNopExpr(), tree_manipulation::CreateUnsigned(), soft_float_cg_ext::cstCast(), boost::degree_coloring(), vcd_utility::detect_fixed_address_mismatch(), mux_connection_binding::determine_connection(), IR_lowering::division_by_a_constant(), coloring_based_clique_covering< vertex_type >::do_clique_covering(), TTT_based_clique_covering< vertex_type >::do_clique_covering(), AllocationInformation::estimate_call_delay(), estimate_muxes(), AllocationInformation::estimate_muxNto1_area(), Schedule::EvaluateCondsMerging(), Schedule::EvaluateMultiWayIfsMerging(), HWDiscrepancyAnalysis::Exec(), vcd_utility::Exec(), InterfaceInfer::Exec(), parametric_list_based::exec(), RTS_based_clique_covering< vertex_type >::exec(), IR_lowering::expand_MC(), memory_allocation::finalize_memory_allocation(), port_swapping::find_max_degree(), Bit_Value::forward_transfer(), Range::fromBitValues(), WB4_interface::get_addr_bus_bitsize(), get_addr_bus_bitsize(), get_aligned_bitsize(), tree_helper::get_array_dim_and_bitsize(), AllocationInformation::get_attribute_of_fu_per_op(), allocation::get_compliant_pipelined_unit(), WB4_interface::get_data_bus_bitsize(), get_data_bus_bitsize(), memory::get_last_address(), memory::get_max_address(), AllocationInformation::get_worst_execution_time(), AllocationInformation::get_worst_number_of_cycles(), AllocationInformation::get_worst_stage_period(), tree_helper::GetArrayElementSize(), Range::getBitValues(), AllocationInformation::getConnectionOffset(), AllocationInformation::GetConnectionTime(), AllocationInformation::GetNodeTypePrec(), module_binding_check_no_filter< vertex_type >::getOpSlack(), AllocationInformation::GetPhiConnectionLatency(), CSE::hash_check(), AllocationInformation::Initialize(), module_binding_check< vertex_type >::initialize_structures(), tree_manipulation::InlineFunctionCall(), TestbenchAXIMModuleGenerator::InternalExec(), BB_based_stg::InternalExec(), ControlFlowChecker::InternalExec(), mem_dominator_allocation::InternalExec(), compute_implicit_calls::InternalExec(), CondExprRestructuring::InternalExec(), commutative_expr_restructuring::InternalExec(), RemoveEndingIf::InternalExec(), dead_code_elimination::InternalExec(), MultipleEntryIfReduction::InternalExec(), IR_lowering::InternalExec(), parametric_list_based::InternalExec(), cdfc_module_binding::InternalExec(), laplacian(), main(), bipartite_matching_clique_covering< vertex_type >::max_resources(), bipartite_matching_clique_covering< vertex_type >::min_resources(), Range::neededBits(), needwun(), Range::Not(), APInt::operator T(), flopoco_wrapper::outputSignals(), port_swapping::p_swap(), vcd_utility::print_discrepancy(), process(), lut_transformation::ProcessBasicBlock(), hls_div_cg_ext::recursive_examinate(), chordal_coloring_register::RegisterBinding(), application_manager::RegisterTransformation(), compute_implicit_calls::replace_with_memcpy(), compute_implicit_calls::replace_with_memset(), resize_1_8_pow2(), resize_to_8_or_greater(), Range::sat_add(), Range::sat_sub(), slack_based_filtering::select_candidate_to_remove(), TS_based_clique_covering< vertex_type >::select_edge(), TS_based_clique_covering< vertex_type >::select_edge_start(), vcd_trace_head::set_consecutive_state_executions(), HLS_constraints::set_max_registers(), Parameter::SetCommonDefaults(), Range::shr(), tree_helper::Size(), Range::SMax(), Range::SMin(), sobel(), fu_binding::specialise_fu(), conn_binding::specialise_mux(), reg_binding::specialise_reg(), Range::srem(), Range::sub(), bipartite_matching_clique_covering< vertex_type >::suggest_min_resources(), synth_mult(), RealRange::toFloat32(), Range::UMax(), Range::UMin(), boost::unsorted_coloring(), InterfaceInfer::interface_info::update(), Range::usat_add(), Range::usat_sub(), vcd_parser::vcd_add_signal(), enumeral_type::visit(), integer_type::visit(), cdfc_module_binding::weight_computation(), fu_binding::write_init(), VHDL_writer::write_state_declaration(), verilog_writer::write_state_declaration(), verilog_writer::write_vector_port_binding(), HLSCWriter::WriteSimulatorInitMemory(), port_o::xload(), and signal_o::xload().

◆ MAX

#define MAX   1000

Definition at line 22 of file backprop.h.

◆ MIN

#define MIN   1

Definition at line 23 of file backprop.h.

◆ nodes_per_layer

#define nodes_per_layer   64

◆ norm_param

#define norm_param   0.005

Definition at line 15 of file backprop.h.

◆ offset

#define offset   0.5

Definition at line 18 of file backprop.h.

◆ possible_outputs

#define possible_outputs   3

◆ test_sets

#define test_sets   15

Definition at line 14 of file backprop.h.

◆ training_sets

#define training_sets   163

Definition at line 9 of file backprop.h.

Referenced by backprop(), data_to_input(), input_to_data(), and main().

◆ TYPE

#define TYPE   double

Function Documentation

◆ backprop()

void backprop ( TYPE  weights1[input_dimension *nodes_per_layer],
TYPE  weights2[nodes_per_layer *nodes_per_layer],
TYPE  weights3[nodes_per_layer *possible_outputs],
TYPE  biases1[nodes_per_layer],
TYPE  biases2[nodes_per_layer],
TYPE  biases3[possible_outputs],
TYPE  training_data[training_sets *input_dimension],
TYPE  training_targets[training_sets *possible_outputs] 
)

Generated on Mon Feb 12 2024 13:03:10 for PandA-2024.02 by doxygen 1.8.13