Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 74 for indices (0.35 sec)

  1. tensorflow/compiler/mlir/lite/transforms/optimize.cc

    //
    // values, indices = tfl.topkv2(%inputs, K)
    // %1 = tfl.slice(values, 0, k)
    // %2 = tfl.slice(indices,0, k)
    // .... (values and indices only used for %1 and %2)
    //
    // %1 or %2 can be absent. If values and indices are only used here,
    // this pattern can be replaced with (conceptually)
    //
    // %values, %indices = tfl.topkv2(%inputs, k)
    // replace all use of %1 with values
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

                    "of indices");
        }
      }
    
      if ((indices_rank == 0) || (indices_rank == batch_dims_i)) {
        // Scalar indices (output is rank(params) - 1).
        // Erase shape[axis]
        shape.erase(shape.begin() + axis_i);
      } else if (indices_rank == 1) {
        // Vector indices (output is rank(params)).
        // Copy indices.shape into params.shape[axis]
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

        take value `on_value`, while all other locations take value `off_value`.
    
        If the input `indices` is rank `N`, the output will have rank `N+1`,
        The new axis is created at dimension `axis` (default: the new axis is
        appended at the end).
      }];
    
      let arguments = (ins
        TFL_TensorOf<[I32, I64]>:$indices,
        TFL_I32Tensor:$depth,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/tf-ops.mlir

      %indices0 = "tf.Const"() {value = dense<4> : tensor<i32>} : () -> tensor<i32>
      %indices1 = "tf.Const"() {value = dense<[[3, 2], [1, 0]]> : tensor<2x2xi32>} : () -> tensor<2x2xi32>
    
      // expected-error @+1 {{inconsistent shaped data and index pairs; inferred item shapes [2] and [3] don't match}}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 23 14:40:35 UTC 2023
    - 236.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

    }
    
    void OneHotOp::build(OpBuilder &builder, OperationState &result, Value indices,
                         Value depth, Value on_value, Value off_value,
                         IntegerAttr axis) {
      build(builder, result,
            InferOneHotOpType(indices, depth, on_value, off_value, axis), indices,
            depth, on_value, off_value, axis);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

              op.getLoc(), cast_type, clamp_min, cast_op, clamp_max);
          start_indices_vector.push_back(clamped_index);
        }
    
        // Pack individual start indices to start indices tensor.
        Type start_indices_type = RankedTensorType::get(
            {static_cast<int64_t>(start_indices_vector.size())},
            signed_start_indices_element_type);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/tests/legalize-tf.mlir

      // CHECK:  %values, %indices = "tfl.topk_v2"(%arg0, %cst) : (tensor<1x4xf32>, tensor<i32>) -> (tensor<1x4xf32>, tensor<1x4xi32>)
      // CHECK:  return %values, %indices : tensor<1x4xf32>, tensor<1x4xi32>
    }
    
    func.func @approx_top_k_with_min_k(%arg0: tensor<1x4xf32>) -> (tensor<1x4xf32>, tensor<1x4xi32>) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 05 01:54:33 UTC 2024
    - 153.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

                                 .Union();
          }
    
          auto indices = dim_metadata.getIndices();
          std::vector<int> vector_indices(indices.size(), 0);
          int max_of_indices = 0;
          for (int j = 0, end = indices.size(); j < end; j++) {
            vector_indices[j] = indices[j];
            if (vector_indices[j] > max_of_indices) {
              max_of_indices = vector_indices[j];
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

          int64_t& inferred_dim = (*inferred_item_shape)[i];
          int64_t dim = item_shape[i];
          if (ShapedType::isDynamic(inferred_dim)) inferred_dim = dim;
        }
      }
    
      // If all indices are constants, then verify that they cover all indices in
      // the range [0, max_index] and the output type is legal.
      if (all_indices_const) {
        for (int32_t i = 0; i <= max_index; i++) {
          if (!index_values.count(i))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

          padded_shape[i] += padding;
        }
    
        return padded_shape;
      }
    
      std::pair<int64_t, int64_t> GetDimSize(
          const ArrayRef<int64_t> shape, const ArrayRef<int64_t> indexes) const {
        return {shape[indexes[0]], shape[indexes[1]]};
      }
    
      bool IsTransposeConv(
          stablehlo::ConvolutionOp op,
          stablehlo::ConvDimensionNumbersAttr dimension_numbers) const {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
Back to top