Client-side Class Inheritance
Learn how to inherit from and modify the behavior of TinyChain client classes
Client-side methods
Easy: helper classes based on Map and Tuple
@tc.post_op
def force(mass: tc.Tuple, acceleration: tc.Tuple) -> tc.Tuple:
mass_quantity = tc.Number(mass[0])
mass_unit = Mass(mass[1])
acceleration_quantity = tc.Number(acceleration[0])
acceleration_unit = Velocity(acceleration[1])**2
return mass_quantity * acceleration_quantity, mass_unit * acceleration_unitChallenging: construct a deep neural net
Last updated
Was this helpful?