code: def test_input_without_dynamic_axes():
      x = C.input_variable(
          shape=(2,), dynamic_axes=[], needs_gradient=True, name="x"
      )
      assert len(x.dynamic_axes) == 0
  
      op = x * 0.01 + 3.0
      grad_result, eval_result = op.grad(
          {x: np.asarray([0.6, -0.8], dtype=np.float32)},
          outputs=[op],
          wrt=[x],
      )
      assert np.allclose(eval_result, [3.006, 2.992])
      assert np.allclose(grad_result, [0.01, 0.01])
  
      w = C.parameter(
          init=np.asarray([[0.5], [-1.5]], dtype=np.float32)
      )
      op = C.times(x, w) + 3.0
      grad_result, eval_result = op.grad(
          {x: np.asarray([0.6, -0.8], dtype=np.float32)},
          outputs=[op],
          wrt=[w],
      )
      assert np.allclose(eval_result, [4.5])
      assert np.allclose(grad_result, [[0.6], [-0.8]])
  
file_path: CNTK/bindings/python/cntk/ops/tests/evaluation_test.py
imports: from __future__ import division
  import numpy
  import pytest
  from .ops_test_utils import _test_binary_op, AA, precision, PRECISION_TO_TYPE, unittest_helper
  from cntk import dropout, combine
  import cntk
label_desc: Use image node_id 6 for calling a global function with example usage: test_input_without_dynamic_axes() without return types