| /** |
| * Copyright (c) 2020 CEA LIST |
| * |
| * All rights reserved. This program and the accompanying materials are |
| * made available under the terms of the Eclipse Public License v2.0 which |
| * accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| */ |
| package org.eclipse.papyrus.aiml.profile.AIML.Convolution_layers.impl; |
| |
| import java.util.Collection; |
| |
| import org.eclipse.emf.common.notify.Notification; |
| |
| import org.eclipse.emf.common.util.EList; |
| |
| import org.eclipse.emf.ecore.EClass; |
| |
| import org.eclipse.emf.ecore.impl.ENotificationImpl; |
| |
| import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; |
| |
| import org.eclipse.papyrus.aiml.profile.AIML.Convolution_layers.Convolution; |
| import org.eclipse.papyrus.aiml.profile.AIML.Convolution_layers.Convolution_layersPackage; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model object '<em><b>Convolution</b></em>'. |
| * <!-- end-user-doc --> |
| * <p> |
| * The following features are implemented: |
| * </p> |
| * <ul> |
| * <li>{@link org.eclipse.papyrus.aiml.profile.AIML.Convolution_layers.impl.ConvolutionImpl#getIn_channels <em>In channels</em>}</li> |
| * <li>{@link org.eclipse.papyrus.aiml.profile.AIML.Convolution_layers.impl.ConvolutionImpl#getGroups <em>Groups</em>}</li> |
| * <li>{@link org.eclipse.papyrus.aiml.profile.AIML.Convolution_layers.impl.ConvolutionImpl#isBiais <em>Biais</em>}</li> |
| * <li>{@link org.eclipse.papyrus.aiml.profile.AIML.Convolution_layers.impl.ConvolutionImpl#getPadding_mode <em>Padding mode</em>}</li> |
| * <li>{@link org.eclipse.papyrus.aiml.profile.AIML.Convolution_layers.impl.ConvolutionImpl#getData_format <em>Data format</em>}</li> |
| * <li>{@link org.eclipse.papyrus.aiml.profile.AIML.Convolution_layers.impl.ConvolutionImpl#getDilation_rate <em>Dilation rate</em>}</li> |
| * <li>{@link org.eclipse.papyrus.aiml.profile.AIML.Convolution_layers.impl.ConvolutionImpl#getActivation <em>Activation</em>}</li> |
| * <li>{@link org.eclipse.papyrus.aiml.profile.AIML.Convolution_layers.impl.ConvolutionImpl#getBias_initializer <em>Bias initializer</em>}</li> |
| * <li>{@link org.eclipse.papyrus.aiml.profile.AIML.Convolution_layers.impl.ConvolutionImpl#getActivity_regularizer <em>Activity regularizer</em>}</li> |
| * <li>{@link org.eclipse.papyrus.aiml.profile.AIML.Convolution_layers.impl.ConvolutionImpl#getBias_constraint <em>Bias constraint</em>}</li> |
| * <li>{@link org.eclipse.papyrus.aiml.profile.AIML.Convolution_layers.impl.ConvolutionImpl#getBias_regularizer <em>Bias regularizer</em>}</li> |
| * </ul> |
| * |
| * @generated |
| */ |
| public abstract class ConvolutionImpl extends Convolution_layersImpl implements Convolution { |
| /** |
| * The default value of the '{@link #getIn_channels() <em>In channels</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getIn_channels() |
| * @generated |
| * @ordered |
| */ |
| protected static final int IN_CHANNELS_EDEFAULT = 0; |
| |
| /** |
| * The cached value of the '{@link #getIn_channels() <em>In channels</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getIn_channels() |
| * @generated |
| * @ordered |
| */ |
| protected int in_channels = IN_CHANNELS_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getGroups() <em>Groups</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getGroups() |
| * @generated |
| * @ordered |
| */ |
| protected static final int GROUPS_EDEFAULT = 0; |
| |
| /** |
| * The cached value of the '{@link #getGroups() <em>Groups</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getGroups() |
| * @generated |
| * @ordered |
| */ |
| protected int groups = GROUPS_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #isBiais() <em>Biais</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isBiais() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean BIAIS_EDEFAULT = false; |
| |
| /** |
| * The cached value of the '{@link #isBiais() <em>Biais</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isBiais() |
| * @generated |
| * @ordered |
| */ |
| protected boolean biais = BIAIS_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getPadding_mode() <em>Padding mode</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPadding_mode() |
| * @generated |
| * @ordered |
| */ |
| protected static final String PADDING_MODE_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getPadding_mode() <em>Padding mode</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPadding_mode() |
| * @generated |
| * @ordered |
| */ |
| protected String padding_mode = PADDING_MODE_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getData_format() <em>Data format</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getData_format() |
| * @generated |
| * @ordered |
| */ |
| protected static final String DATA_FORMAT_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getData_format() <em>Data format</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getData_format() |
| * @generated |
| * @ordered |
| */ |
| protected String data_format = DATA_FORMAT_EDEFAULT; |
| |
| /** |
| * The cached value of the '{@link #getDilation_rate() <em>Dilation rate</em>}' attribute list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDilation_rate() |
| * @generated |
| * @ordered |
| */ |
| protected EList<Integer> dilation_rate; |
| |
| /** |
| * The default value of the '{@link #getActivation() <em>Activation</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getActivation() |
| * @generated |
| * @ordered |
| */ |
| protected static final String ACTIVATION_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getActivation() <em>Activation</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getActivation() |
| * @generated |
| * @ordered |
| */ |
| protected String activation = ACTIVATION_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getBias_initializer() <em>Bias initializer</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getBias_initializer() |
| * @generated |
| * @ordered |
| */ |
| protected static final String BIAS_INITIALIZER_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getBias_initializer() <em>Bias initializer</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getBias_initializer() |
| * @generated |
| * @ordered |
| */ |
| protected String bias_initializer = BIAS_INITIALIZER_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getActivity_regularizer() <em>Activity regularizer</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getActivity_regularizer() |
| * @generated |
| * @ordered |
| */ |
| protected static final String ACTIVITY_REGULARIZER_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getActivity_regularizer() <em>Activity regularizer</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getActivity_regularizer() |
| * @generated |
| * @ordered |
| */ |
| protected String activity_regularizer = ACTIVITY_REGULARIZER_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getBias_constraint() <em>Bias constraint</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getBias_constraint() |
| * @generated |
| * @ordered |
| */ |
| protected static final String BIAS_CONSTRAINT_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getBias_constraint() <em>Bias constraint</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getBias_constraint() |
| * @generated |
| * @ordered |
| */ |
| protected String bias_constraint = BIAS_CONSTRAINT_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getBias_regularizer() <em>Bias regularizer</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getBias_regularizer() |
| * @generated |
| * @ordered |
| */ |
| protected static final String BIAS_REGULARIZER_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getBias_regularizer() <em>Bias regularizer</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getBias_regularizer() |
| * @generated |
| * @ordered |
| */ |
| protected String bias_regularizer = BIAS_REGULARIZER_EDEFAULT; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected ConvolutionImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| protected EClass eStaticClass() { |
| return Convolution_layersPackage.Literals.CONVOLUTION; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public int getIn_channels() { |
| return in_channels; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void setIn_channels(int newIn_channels) { |
| int oldIn_channels = in_channels; |
| in_channels = newIn_channels; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, Convolution_layersPackage.CONVOLUTION__IN_CHANNELS, oldIn_channels, in_channels)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public int getGroups() { |
| return groups; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void setGroups(int newGroups) { |
| int oldGroups = groups; |
| groups = newGroups; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, Convolution_layersPackage.CONVOLUTION__GROUPS, oldGroups, groups)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public boolean isBiais() { |
| return biais; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void setBiais(boolean newBiais) { |
| boolean oldBiais = biais; |
| biais = newBiais; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, Convolution_layersPackage.CONVOLUTION__BIAIS, oldBiais, biais)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public String getPadding_mode() { |
| return padding_mode; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void setPadding_mode(String newPadding_mode) { |
| String oldPadding_mode = padding_mode; |
| padding_mode = newPadding_mode; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, Convolution_layersPackage.CONVOLUTION__PADDING_MODE, oldPadding_mode, padding_mode)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public String getData_format() { |
| return data_format; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void setData_format(String newData_format) { |
| String oldData_format = data_format; |
| data_format = newData_format; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, Convolution_layersPackage.CONVOLUTION__DATA_FORMAT, oldData_format, data_format)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public EList<Integer> getDilation_rate() { |
| if (dilation_rate == null) { |
| dilation_rate = new EDataTypeUniqueEList<Integer>(Integer.class, this, Convolution_layersPackage.CONVOLUTION__DILATION_RATE); |
| } |
| return dilation_rate; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public String getActivation() { |
| return activation; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void setActivation(String newActivation) { |
| String oldActivation = activation; |
| activation = newActivation; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, Convolution_layersPackage.CONVOLUTION__ACTIVATION, oldActivation, activation)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public String getBias_initializer() { |
| return bias_initializer; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void setBias_initializer(String newBias_initializer) { |
| String oldBias_initializer = bias_initializer; |
| bias_initializer = newBias_initializer; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, Convolution_layersPackage.CONVOLUTION__BIAS_INITIALIZER, oldBias_initializer, bias_initializer)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public String getActivity_regularizer() { |
| return activity_regularizer; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void setActivity_regularizer(String newActivity_regularizer) { |
| String oldActivity_regularizer = activity_regularizer; |
| activity_regularizer = newActivity_regularizer; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, Convolution_layersPackage.CONVOLUTION__ACTIVITY_REGULARIZER, oldActivity_regularizer, activity_regularizer)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public String getBias_constraint() { |
| return bias_constraint; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void setBias_constraint(String newBias_constraint) { |
| String oldBias_constraint = bias_constraint; |
| bias_constraint = newBias_constraint; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, Convolution_layersPackage.CONVOLUTION__BIAS_CONSTRAINT, oldBias_constraint, bias_constraint)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public String getBias_regularizer() { |
| return bias_regularizer; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void setBias_regularizer(String newBias_regularizer) { |
| String oldBias_regularizer = bias_regularizer; |
| bias_regularizer = newBias_regularizer; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, Convolution_layersPackage.CONVOLUTION__BIAS_REGULARIZER, oldBias_regularizer, bias_regularizer)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public Object eGet(int featureID, boolean resolve, boolean coreType) { |
| switch (featureID) { |
| case Convolution_layersPackage.CONVOLUTION__IN_CHANNELS: |
| return getIn_channels(); |
| case Convolution_layersPackage.CONVOLUTION__GROUPS: |
| return getGroups(); |
| case Convolution_layersPackage.CONVOLUTION__BIAIS: |
| return isBiais(); |
| case Convolution_layersPackage.CONVOLUTION__PADDING_MODE: |
| return getPadding_mode(); |
| case Convolution_layersPackage.CONVOLUTION__DATA_FORMAT: |
| return getData_format(); |
| case Convolution_layersPackage.CONVOLUTION__DILATION_RATE: |
| return getDilation_rate(); |
| case Convolution_layersPackage.CONVOLUTION__ACTIVATION: |
| return getActivation(); |
| case Convolution_layersPackage.CONVOLUTION__BIAS_INITIALIZER: |
| return getBias_initializer(); |
| case Convolution_layersPackage.CONVOLUTION__ACTIVITY_REGULARIZER: |
| return getActivity_regularizer(); |
| case Convolution_layersPackage.CONVOLUTION__BIAS_CONSTRAINT: |
| return getBias_constraint(); |
| case Convolution_layersPackage.CONVOLUTION__BIAS_REGULARIZER: |
| return getBias_regularizer(); |
| } |
| return super.eGet(featureID, resolve, coreType); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @SuppressWarnings("unchecked") |
| @Override |
| public void eSet(int featureID, Object newValue) { |
| switch (featureID) { |
| case Convolution_layersPackage.CONVOLUTION__IN_CHANNELS: |
| setIn_channels((Integer)newValue); |
| return; |
| case Convolution_layersPackage.CONVOLUTION__GROUPS: |
| setGroups((Integer)newValue); |
| return; |
| case Convolution_layersPackage.CONVOLUTION__BIAIS: |
| setBiais((Boolean)newValue); |
| return; |
| case Convolution_layersPackage.CONVOLUTION__PADDING_MODE: |
| setPadding_mode((String)newValue); |
| return; |
| case Convolution_layersPackage.CONVOLUTION__DATA_FORMAT: |
| setData_format((String)newValue); |
| return; |
| case Convolution_layersPackage.CONVOLUTION__DILATION_RATE: |
| getDilation_rate().clear(); |
| getDilation_rate().addAll((Collection<? extends Integer>)newValue); |
| return; |
| case Convolution_layersPackage.CONVOLUTION__ACTIVATION: |
| setActivation((String)newValue); |
| return; |
| case Convolution_layersPackage.CONVOLUTION__BIAS_INITIALIZER: |
| setBias_initializer((String)newValue); |
| return; |
| case Convolution_layersPackage.CONVOLUTION__ACTIVITY_REGULARIZER: |
| setActivity_regularizer((String)newValue); |
| return; |
| case Convolution_layersPackage.CONVOLUTION__BIAS_CONSTRAINT: |
| setBias_constraint((String)newValue); |
| return; |
| case Convolution_layersPackage.CONVOLUTION__BIAS_REGULARIZER: |
| setBias_regularizer((String)newValue); |
| return; |
| } |
| super.eSet(featureID, newValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void eUnset(int featureID) { |
| switch (featureID) { |
| case Convolution_layersPackage.CONVOLUTION__IN_CHANNELS: |
| setIn_channels(IN_CHANNELS_EDEFAULT); |
| return; |
| case Convolution_layersPackage.CONVOLUTION__GROUPS: |
| setGroups(GROUPS_EDEFAULT); |
| return; |
| case Convolution_layersPackage.CONVOLUTION__BIAIS: |
| setBiais(BIAIS_EDEFAULT); |
| return; |
| case Convolution_layersPackage.CONVOLUTION__PADDING_MODE: |
| setPadding_mode(PADDING_MODE_EDEFAULT); |
| return; |
| case Convolution_layersPackage.CONVOLUTION__DATA_FORMAT: |
| setData_format(DATA_FORMAT_EDEFAULT); |
| return; |
| case Convolution_layersPackage.CONVOLUTION__DILATION_RATE: |
| getDilation_rate().clear(); |
| return; |
| case Convolution_layersPackage.CONVOLUTION__ACTIVATION: |
| setActivation(ACTIVATION_EDEFAULT); |
| return; |
| case Convolution_layersPackage.CONVOLUTION__BIAS_INITIALIZER: |
| setBias_initializer(BIAS_INITIALIZER_EDEFAULT); |
| return; |
| case Convolution_layersPackage.CONVOLUTION__ACTIVITY_REGULARIZER: |
| setActivity_regularizer(ACTIVITY_REGULARIZER_EDEFAULT); |
| return; |
| case Convolution_layersPackage.CONVOLUTION__BIAS_CONSTRAINT: |
| setBias_constraint(BIAS_CONSTRAINT_EDEFAULT); |
| return; |
| case Convolution_layersPackage.CONVOLUTION__BIAS_REGULARIZER: |
| setBias_regularizer(BIAS_REGULARIZER_EDEFAULT); |
| return; |
| } |
| super.eUnset(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public boolean eIsSet(int featureID) { |
| switch (featureID) { |
| case Convolution_layersPackage.CONVOLUTION__IN_CHANNELS: |
| return in_channels != IN_CHANNELS_EDEFAULT; |
| case Convolution_layersPackage.CONVOLUTION__GROUPS: |
| return groups != GROUPS_EDEFAULT; |
| case Convolution_layersPackage.CONVOLUTION__BIAIS: |
| return biais != BIAIS_EDEFAULT; |
| case Convolution_layersPackage.CONVOLUTION__PADDING_MODE: |
| return PADDING_MODE_EDEFAULT == null ? padding_mode != null : !PADDING_MODE_EDEFAULT.equals(padding_mode); |
| case Convolution_layersPackage.CONVOLUTION__DATA_FORMAT: |
| return DATA_FORMAT_EDEFAULT == null ? data_format != null : !DATA_FORMAT_EDEFAULT.equals(data_format); |
| case Convolution_layersPackage.CONVOLUTION__DILATION_RATE: |
| return dilation_rate != null && !dilation_rate.isEmpty(); |
| case Convolution_layersPackage.CONVOLUTION__ACTIVATION: |
| return ACTIVATION_EDEFAULT == null ? activation != null : !ACTIVATION_EDEFAULT.equals(activation); |
| case Convolution_layersPackage.CONVOLUTION__BIAS_INITIALIZER: |
| return BIAS_INITIALIZER_EDEFAULT == null ? bias_initializer != null : !BIAS_INITIALIZER_EDEFAULT.equals(bias_initializer); |
| case Convolution_layersPackage.CONVOLUTION__ACTIVITY_REGULARIZER: |
| return ACTIVITY_REGULARIZER_EDEFAULT == null ? activity_regularizer != null : !ACTIVITY_REGULARIZER_EDEFAULT.equals(activity_regularizer); |
| case Convolution_layersPackage.CONVOLUTION__BIAS_CONSTRAINT: |
| return BIAS_CONSTRAINT_EDEFAULT == null ? bias_constraint != null : !BIAS_CONSTRAINT_EDEFAULT.equals(bias_constraint); |
| case Convolution_layersPackage.CONVOLUTION__BIAS_REGULARIZER: |
| return BIAS_REGULARIZER_EDEFAULT == null ? bias_regularizer != null : !BIAS_REGULARIZER_EDEFAULT.equals(bias_regularizer); |
| } |
| return super.eIsSet(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public String toString() { |
| if (eIsProxy()) return super.toString(); |
| |
| StringBuilder result = new StringBuilder(super.toString()); |
| result.append(" (in_channels: "); //$NON-NLS-1$ |
| result.append(in_channels); |
| result.append(", groups: "); //$NON-NLS-1$ |
| result.append(groups); |
| result.append(", biais: "); //$NON-NLS-1$ |
| result.append(biais); |
| result.append(", padding_mode: "); //$NON-NLS-1$ |
| result.append(padding_mode); |
| result.append(", data_format: "); //$NON-NLS-1$ |
| result.append(data_format); |
| result.append(", dilation_rate: "); //$NON-NLS-1$ |
| result.append(dilation_rate); |
| result.append(", activation: "); //$NON-NLS-1$ |
| result.append(activation); |
| result.append(", bias_initializer: "); //$NON-NLS-1$ |
| result.append(bias_initializer); |
| result.append(", activity_regularizer: "); //$NON-NLS-1$ |
| result.append(activity_regularizer); |
| result.append(", bias_constraint: "); //$NON-NLS-1$ |
| result.append(bias_constraint); |
| result.append(", bias_regularizer: "); //$NON-NLS-1$ |
| result.append(bias_regularizer); |
| result.append(')'); |
| return result.toString(); |
| } |
| |
| } //ConvolutionImpl |