29 August 2025
μεγατογενTy, I didn't know that
x = [17, 8, 3]
y = x.copy()
print(id(x))
print(id(y))
y[0] = 9
print(x) # [17,8,3]
print(y) # [9,8,3]
this will give different memory value
......Does anyone know about tensorflow and tensorflow-lite. Need a urgent hep
If you need help explain your issues here. No urgent help is provided though, just regular helpp
Guys I have a question, is it possible to pass an existing object to the child's init arguments without keep rewriting it?
let's say I have a grandparent, parent and child class. I have made an object of grandparent, now when I want to create an object of child class, I literally have to fill grandparent's parameters over again.
ArtanGuys I have a question, is it possible to pass an existing object to the child's init arguments without keep rewriting it?
let's say I have a grandparent, parent and child class. I have made an object of grandparent, now when I want to create an object of child class, I literally have to fill grand
Show some code so we can be more specific
......I m trying to convert ssd-mobilenet-v2 tensorflow model into .tflite fully quantised int8 model. And after the conversion, the model is detecting objects though there is no object in the frame
There are multiple resons for that but without details is hard to guess. It can be just your model is bad or quantization made your precisión fall a lot
class Fruit:
def __init__(self, name, color):
self.name = name
self.color = color
class Apple(Fruit):
def __init__(self, name, color, variety, region):
super().__init__(name, color)
self.variety = variety
self.region = region
def describe():
print(f"{self.name, self.color, self.variety, self.region} are correct.")
x = Fruit("Apple", "red")
y = Apple("Apple", "red", "Fuji", "X_place")
z = Apple(x, "Fuji", "X_place")
print(x)
print(y)
print(z)
now if you print, I'll get error that I'm missing one argument in z. I don't want to keep refilling parent's parameters everytime I create a new object.
Artanclass Fruit:
def __init__(self, name, color):
self.name = name
self.color = color
class Apple(Fruit):
def __init__(self, name, color, variety, region):
super().__init__(name, color)
self.variety = variety
self.region = region
def describe():
You need to do it yourself it won't magically know what to do with the attributes:
class Apple(Fruit):
def __init__(self, variety, region):
super().__init__("Apple", "red")
self.variety = variety
self.region = region
id 7057210588Path for learning
Why don't you follow a book or a course instead of making your own roadmap?
Artanclass Fruit:
def __init__(self, name, color):
self.name = name
self.color = color
class Apple(Fruit):
def __init__(self, name, color, variety, region):
super().__init__(name, color)
self.variety = variety
self.region = region
def describe():
If parameters exist they must be defined, but as a workaround you can add default values for parameters.
Some like this
def my_function(country = "Norway"):
print("I am from " + country)
my_function("Sweden")
my_function("India")
my_function()