Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for reduce_sum (0.09 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test_base.py

            self.w = np.random.uniform(low=-2, high=2, size=w_shape).astype('f4')
    
          @def_function.function
          def condition(self, x, w):
            return math_ops.reduce_sum(x, keepdims=False) < 100
    
          @def_function.function
          def body(self, x, w):
            z = nn_ops.conv2d(x, w, padding='SAME')
            return z, w
    
          @def_function.function(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 08:51:46 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc

        auto loc = op.getLoc();
    
        // Note that the TensorFlow Softmax op verifies that the input rank is
        // greater than or equal to one so the following sequence is valid.
        auto reduce_dim =
            rewriter.create<TF::ConstOp>(loc, GetI64ElementsAttr({-1}, &rewriter));
    
        // Exponential of input values and then their sum can be very large here.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 74.9K bytes
    - Viewed (0)
Back to top