Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for reduction_indices (0.28 sec)

  1. tensorflow/cc/gradients/math_grad.cc

      // Running example:
      // input: [[5, 5, 5],
      //         [1, 2, -3]]
      // reduction_indices: [1]
      auto input = op.input(0);
      auto reduction_indices = op.input(1);
    
      // [2, 3]
      auto input_shape = Shape(scope, input);
    
      // [2, 1]
      auto output_shape_kept_dims =
          ReducedShapeHelper(scope, input_shape, reduction_indices);
    
      // for op=min (say)
      // output = [5, -3]
      // y = [[5],
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 50.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfr/python/tfr_gen.py

    # TODO(b/203493652): implement the "rename_to" for the customization in
    # tensorflow/core/api_def/base_api/*
    # {op_name: {API's attribute name: OpDef's attribute name}}
    _ATTRIBUTE_RENAMES = {
        'Mean': {'axis': 'reduction_indices'},
        'Split': {'axis': 'split_dim'},
        'SplitV': {'axis': 'split_dim'},
    }
    
    
    def _get_type_from_proto(arg_def=None, attr_def=None):
      if not arg_def:
        if attr_def.type == 'bool':
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 27 15:27:03 UTC 2022
    - 55.8K bytes
    - Viewed (0)
Back to top