The correct statements for the code below are:
- An object of the ActivationLayer class has a name attribute.
- print(FCLayer(42)) prints FullyConnectedLayer.
- When creating an object of the BaseLayer class, the name argument must be given.
<h3>What is activation layer?</h3>
Activation layer is known to be the added into the code after the weight layer.
Note that The correct statements for the code below are:
- An object of the ActivationLayer class has a name attribute.
- print(FCLayer(42)) prints FullyConnectedLayer.
- When creating an object of the BaseLayer class, the name argument must be given.
See options below
An object of the ActivationLayer class has a name attribute.
An object of the BaseLayer class has a size attribute.
print(FCLayer(42)) prints FullyConnectedLayer.
When creating an object of the ActivationLayer class, the size argument must be given.
When creating an object of the BaseLayer class, the name argument must be given.
Learn more about code from
brainly.com/question/26497128
#SPJ1
<span>The answer your looking for is Wrap text!!</span>
Answer:
def replace_at_index(str, number):
new = str.replace(str[number], "-")
return new
print(replace_at_index("eggplant", 3))
Explanation:
- Create a function called <em>replace_at_index</em> that takes a string and an integer
- Initialize a new variable called <em>new</em>, that will hold the new string
- Replace the character at given index with dash using <em>replace</em> function, it takes two parameters: the first is the character we want to replace, the second is the new character.
- Return the new string
- Call the function with the required inputs