Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 161 for Indices (0.31 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tf_xla_op_to_tf_op.cc

      SmallVector<int64_t> indices(index_map_size);
      for (int64_t i = 0; i < index_map_size; i++) {
        indices[i] = dimension_numbers.start_index_map()[i];
      }
    
      // Fill elements from start_indices with start_index_map
      Value scattered_start_indices = builder.create<TF::TensorScatterUpdateOp>(
          loc, empty_start_indices,
          /*indices=*/
          builder.create<TF::ReshapeOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/decompose_resource_ops.mlir

        // CHECK: "tf.AssignVariableOp"([[VAR]], [[TENSOR]])
        "tf.ResourceScatterAdd"(%resource, %indices, %updates) : (tensor<*x!tf_type.resource<tensor<*xi32>>>, tensor<2x?xi32>, tensor<?x?x?xi32>) -> ()
    
        tf_device.return
      }) : () -> ()
      func.return
    }
    
    // Tests that composite tf.ResourceScatterAdd with 1d Indices operation is decomposed.
    
    // CHECK-LABEL: @decompose_resource_scatter_add_op_1d_indices
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 19:47:48 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/layout_optimization.cc

      SmallVector<TransposeOp, 2> transpose_ops;
    
      // Constant operation that defines permutation indices for result transposes.
      ConstOp permutation_op;
    
      // All operation results must be used by transpose operations with the same
      // permutation indices.
      for (OpResult result : op->getResults()) {
        for (Operation* user : result.getUsers()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfrt/ir/gpu_ops.td

      let description = [{
        The op compiles and executes a GPU cluster function.
    
        func_name is the name of the function to be executed on GPU.
        resource_indices are the indices of inputs that are resources.
        used_output_indices are the indices of outputs that have users.
    
        Example:
          %results = gpurt.compile_and_execute {func_name = "xla_func_0", resource_indices = [1] ...}
      }];
    
      let arguments = (ins
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 18 15:01:21 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfrt/tests/tf_to_corert/fallback.mlir

      // CHECK: [[ch3:%.*]], [[results:%.*]]:2 = tfrt_fallback_async.get_resource [[ready_ch]] {device = "/device:CPU:0", indices = [0, 1]}
      // CHECK: tfrt_fallback_async.executeop key({{.*}}) cost({{.*}}) device("/device:CPU:0") "tf.MatMul"([[results]]#0, [[results]]#1)
      %a, %b = "tf._TfrtGetResource"() {device = "/device:CPU:0", indices = [0, 1], shared_name = ["", ""], container = ["", ""]} : () -> (tensor<3x1xf32>, tensor<1x3xf32>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 00:18:59 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  6. 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)
  7. tensorflow/c/c_api_function.cc

          input_nodes->insert({node, {idx}});
        } else {
          auto& indices = iter->second;
          if (std::find(indices.begin(), indices.end(), idx) != indices.end()) {
            return InvalidArgument("TF_Output ", node->name(), ":", idx,
                                   " appears more than once in the input list");
          }
          indices.push_back(idx);
        }
      }
      return absl::OkStatus();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/ir/tfl_op_interfaces.td

        Stateful operands correspond to TF's variables semantics. An op that has 1
        or more stateful operands is a stateful op.
      }];
    
      let methods = [
        InterfaceMethod<
          [{Returns the indices of stateful operands.}],
          "std::vector<int>", "GetStatefulOperands", (ins)
        >,
      ];
    }
    
    //===----------------------------------------------------------------------===//
    // TFL op interface for sparse operands.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. internal/event/target/elasticsearch.go

    	res, err := c.Indices.ResolveIndex([]string{args.Index})
    	if err != nil {
    		return err
    	}
    	defer res.Body.Close()
    
    	var v map[string]interface{}
    	found := false
    	if err := json.NewDecoder(res.Body).Decode(&v); err != nil {
    		return fmt.Errorf("Error parsing response body: %v", err)
    	}
    
    	indices, ok := v["indices"].([]interface{})
    	if ok {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/prepare_patterns.td

    //===----------------------------------------------------------------------===//
    
    def LowerTensorScatterAdd: Pat<
      (TF_TensorScatterAddOp $input, $indices, $updates),
      (TF_TensorScatterUpdateOp $input, $indices,
         (TF_AddOp $updates, (CreateGatherNdOp $updates, $input, $indices)))>;
    
    //===----------------------------------------------------------------------===//
    // AddV2 op patterns.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 10.5K bytes
    - Viewed (0)
Back to top