- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 150 for Indices (0.19 sec)
-
src/archive/tar/writer_test.go
} // xattr bar should always appear before others indices := []int{ bytes.Index(buf.Bytes(), []byte("bar=bar")), bytes.Index(buf.Bytes(), []byte("baz=baz")), bytes.Index(buf.Bytes(), []byte("foo=foo")), bytes.Index(buf.Bytes(), []byte("qux=qux")), } if !slices.IsSorted(indices) { t.Fatal("PAX headers are not sorted") } } func TestUSTARLongName(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 38.7K bytes - Viewed (0) -
src/strings/strings.go
// The start index is inclusive and the end index is exclusive. type span struct { start int end int } spans := make([]span, 0, 32) // Find the field start and end indices. // Doing this in a separate pass (rather than slicing the string s // and collecting the result substrings right away) is significantly // more efficient, possibly due to cache effects.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 16:48:16 UTC 2024 - 31.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h
const std::vector<int>& tensors = lstm_property.restrict_scale[0]; if (tensors.size() != 2) { op.emitError( "Unexpected restricted_scale from operator property." " Should only have a pair of indices."); return failure(); } return processRestrictScale(op, tensors[0], tensors[1], rewriter); } private: // For LSTM's recurrent input activation and output, they are quantized with
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 18:01:23 UTC 2024 - 28K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/tests/passes/lift_quantizable_spots_as_functions.mlir
} : (tensor<3x4x2xi32>, tensor<2x3x2xi64>) -> tensor<2x3x2x2xi32> func.return %2: tensor<2x3x2x2xi32> } // CHECK: %[[OPERAND:.*]] = stablehlo.constant // CHECK: %[[INDICES:.*]] = stablehlo.constant // CHECK: %[[XLA_CALL_MODULE:.*]] = "tf.XlaCallModule"(%[[OPERAND]], %[[INDICES]]) // CHECK: return %[[XLA_CALL_MODULE:.*]] : tensor<2x3x2x2xi32> // CHECK: } // CHECK-LABEL: private @composite_gather_fn_1
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 04:07:09 UTC 2024 - 49.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py
self, input_tensor: core.Tensor ) -> Mapping[str, core.Tensor]: k = array_ops.constant(4, dtype=dtypes.int32) values, indices = nn_ops.top_k(input_tensor, k, name='TopK') adj_values = values + 2 return {'indices': indices, 'adj_values': adj_values, 'values': values} @def_function.function( input_signature=[ tensor_spec.TensorSpec(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 03:36:50 UTC 2024 - 235.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc
!axis.getSplatValue<llvm::APInt>().isZero()) { return {}; } DenseIntElementsAttr indices; if (!matchPattern(op.getIndices(), m_Constant(&indices)) || indices.getType().getRank() != 1 || port[1] >= indices.getNumElements()) { return {}; } int64_t input_idx = indices.getValues<IntegerAttr>()[port[1]].getInt(); if (input_idx >= params_ty.getDimSize(0)) return {};
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jun 08 07:28:49 UTC 2024 - 134.1K bytes - Viewed (0) -
src/go/token/position.go
// we need to remove the entry in lines corresponding to the line // numbered <line+1>. The entry in lines corresponding to the line // numbered <line+1> is located at index <line>, since indices in lines // are 0-based and line numbers are 1-based. copy(f.lines[line:], f.lines[line+1:]) f.lines = f.lines[:len(f.lines)-1] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 19.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/tests/legalize_hlo.mlir
// CHECK-SAME: %[[ARG_1:.*]]: tensor<192x256x1xui32>) // CHECK: %[[INDICES:.*]] = "tf.Cast"(%arg1) <{Truncate = false}> : (tensor<192x256x1xui32>) -> tensor<192x256x1xi64> // CHECK: %[[VAL_0:.*]] = "tf.GatherNd"(%[[ARG_0]], %[[INDICES]]) <{bad_indices_policy = ""}> : {{.*}} -> tensor<192x256xf16> // CHECK: return %[[VAL_0]] // CHECK: }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 29 07:26:59 UTC 2024 - 340.2K bytes - Viewed (0) -
doc/go_spec.html
<a href="#Representability">representable</a> by a value of type <code>int</code>; for arrays or constant strings, constant indices must also be in range. If both indices are constant, they must satisfy <code>low <= high</code>. If the indices are out of range at run time, a <a href="#Run_time_panics">run-time panic</a> occurs. </p> <p>
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 21:07:21 UTC 2024 - 281.5K bytes - Viewed (1) -
tensorflow/compiler/mlir/tensorflow/transforms/passes.h
// been decomposed and function calls have already been inlined. If `functions` // is empty, the pass is applied to the main function by default. The pass also // annotates the input arguments for resources with the indices of their // aliasing output arguments. std::unique_ptr<OperationPass<ModuleOp>> CreatePromoteResourcesToArgsPass( llvm::ArrayRef<std::string> functions = {});
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:18:05 UTC 2024 - 31.8K bytes - Viewed (0)