PandA-2024.02
|
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]) |
#define epochs 1 |
Definition at line 13 of file backprop.h.
#define input_dimension 13 |
Definition at line 7 of file backprop.h.
Referenced by check_data(), data_to_input(), data_to_output(), get_delta_matrix_weights1(), input_to_data(), main(), matrix_vector_product_with_bias_input_layer(), output_to_data(), and update_weights().
#define layers 2 |
Definition at line 11 of file backprop.h.
#define learning_rate 0.01 |
Definition at line 12 of file backprop.h.
Referenced by update_weights().
#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().
#define MAX 1000 |
Definition at line 22 of file backprop.h.
#define MIN 1 |
Definition at line 23 of file backprop.h.
#define nodes_per_layer 64 |
Definition at line 10 of file backprop.h.
Referenced by backprop(), check_data(), data_to_input(), data_to_output(), get_delta_matrix_weights1(), get_delta_matrix_weights2(), get_delta_matrix_weights3(), get_oracle_activations1(), get_oracle_activations2(), input_to_data(), main(), matrix_vector_product_with_bias_input_layer(), matrix_vector_product_with_bias_output_layer(), matrix_vector_product_with_bias_second_layer(), output_to_data(), and update_weights().
#define norm_param 0.005 |
Definition at line 15 of file backprop.h.
#define offset 0.5 |
Definition at line 18 of file backprop.h.
#define possible_outputs 3 |
Definition at line 8 of file backprop.h.
Referenced by backprop(), check_data(), data_to_input(), data_to_output(), get_delta_matrix_weights3(), get_oracle_activations2(), input_to_data(), main(), matrix_vector_product_with_bias_output_layer(), output_to_data(), soft_max(), take_difference(), and update_weights().
#define test_sets 15 |
Definition at line 14 of file backprop.h.
#define training_sets 163 |
Definition at line 9 of file backprop.h.
Referenced by backprop(), data_to_input(), input_to_data(), and main().
#define TYPE double |
Definition at line 21 of file backprop.h.
Referenced by backprop(), bbgemm(), buildNeighborList(), check_data(), data_to_input(), data_to_output(), dist_sq(), distance(), ellpack(), fft1D_512(), fillVal(), gemm(), get_oracle_activations1(), get_oracle_activations2(), input_to_data(), insertInOrder(), main(), matrix_vector_product_with_bias_input_layer(), matrix_vector_product_with_bias_output_layer(), matrix_vector_product_with_bias_second_layer(), md(), md_kernel(), merge(), output_to_data(), soft_max(), spmv(), stencil(), stencil3d(), and twiddles8().
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] | ||
) |
Definition at line 239 of file backprop.c.
References bench_args_t::biases1, bench_args_t::biases2, bench_args_t::biases3, get_delta_matrix_weights1(), get_delta_matrix_weights2(), get_delta_matrix_weights3(), get_oracle_activations1(), get_oracle_activations2(), matrix_vector_product_with_bias_input_layer(), matrix_vector_product_with_bias_output_layer(), matrix_vector_product_with_bias_second_layer(), nodes_per_layer, possible_outputs, RELU(), soft_max(), take_difference(), bench_args_t::training_data, training_sets, bench_args_t::training_targets, TYPE, update_weights(), bench_args_t::weights1, bench_args_t::weights2, and bench_args_t::weights3.
Referenced by run_benchmark().