How to use 'pytorch expand dimension' in Python

Every line of 'pytorch expand dimension' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
this disclaimer
29def expand(inputs, num_outputs, **kwargs):
30 with tf.variable_scope('expand'):
31 e1x1 = conv2d(inputs, num_outputs, filter_size=(
32 1, 1), stride=(1, 1), name='1x1', **kwargs)
33 e3x3 = conv2d(inputs, num_outputs,
34 filter_size=(3, 3), name='3x3', **kwargs)
35 return tf.concat([e1x1, e3x3], 3)

Use secure code every time

Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code

Related snippets