- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for vec (0.02 sec)
-
tensorflow/compiler/mlir/lite/flatbuffer_operator.h
auto type = elements.getType(); auto elemType = type.getElementType(); if (elemType.isSignlessInteger(1)) { auto vec = llvm::to_vector( llvm::map_range(elements.getValues<bool>(), [&](bool value) -> uint8_t { return value ? 1 : 0; })); return std::vector<bool>(vec.begin(), vec.end()); } return std::vector<bool>(); } template <>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 16 21:00:09 UTC 2024 - 11.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/tfl_stablehlo_pass.cc
StringRef(content.data(), content.size())); } std::vector<int64_t> FlatbufferVecToMlirVec(const flexbuffers::Vector& vec) { std::vector<int64_t> temp(vec.size(), 0); for (int i = 0; i < vec.size(); i++) { temp[i] = vec[i].AsInt64(); } return temp; } llvm::SmallVector<mlir::NamedAttribute, 4> ReadAttr(const flexbuffers::Map& m,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jan 24 06:08:43 UTC 2024 - 10.8K bytes - Viewed (0) -
tensorflow/c/experimental/gradients/nn_grad.cc
} } } private: // TODO(b/174778737): Only hold needed outputs. vector<AbstractTensorHandle*> forward_outputs_; }; Status BroadcastMul(AbstractContext* ctx, AbstractTensorHandle* vec, AbstractTensorHandle* mat, absl::Span<AbstractTensorHandle*> outputs) { if (!isa<ImmediateExecutionContext>(ctx)) { // TODO(b/168850692): Fix this.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 09 06:38:45 UTC 2024 - 5.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize_layout.cc
void runOnOperation() override; }; // Inversely permutate a given vector static SmallVector<int64_t> InvertPermutationToVector(ArrayRef<int64_t> vec, ArrayRef<int64_t> perm) { return applyPermutation(vec, invertPermutationVector(perm)); } static RankedTensorType GetPermutedTensorTypeHelper(RankedTensorType type,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 21:59:06 UTC 2024 - 8.6K bytes - Viewed (0) -
src/crypto/rsa/pss_test.go
"encoding/hex" "math/big" "os" "strconv" "strings" "testing" ) func TestEMSAPSS(t *testing.T) { // Test vector in file pss-int.txt from: ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-1/pkcs-1v2-1-vec.zip msg := []byte{ 0x85, 0x9e, 0xef, 0x2f, 0xd7, 0x8a, 0xca, 0x00, 0x30, 0x8b, 0xdc, 0x47, 0x11, 0x93, 0xbf, 0x55, 0xbf, 0x9d, 0x78, 0xdb, 0x8f, 0x8a, 0x67, 0x2b, 0x48, 0x46, 0x34, 0xf3, 0xc9, 0xc2,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 8.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/utils.h
inline bool IsReshapeEquivalentToTranspose(ShapedType input_type, ShapedType output_type) { std::vector<int64_t> in_shape{input_type.getShape().vec()}; std::vector<int64_t> out_shape{output_type.getShape().vec()}; // If the reshape changes the number of dimensions so it cannot be interpreted // as a transpose. if (in_shape.size() != out_shape.size()) { return false; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 11.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc
builder.setInsertionPointAfter(while_op); tensorflow::Tensor default_key_tensor(tensorflow::DT_STRING, {3}); default_key_tensor.vec<tensorflow::tstring>()(0) = kDefaultShardingValue; default_key_tensor.vec<tensorflow::tstring>()(1) = kDefaultShardingValue; default_key_tensor.vec<tensorflow::tstring>()(2) = kDefaultShardingValue; auto default_state_key = builder.create<TF::ConstOp>( while_op.getLoc(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/common/tfl_pass_config.h
<< "\nlower_tensor_list_ops: " << pass_config.lower_tensor_list_ops << "\ntrim_functions_allowlist: " << absl::StrJoin(pass_config.trim_functions_allowlist.vec(), ",") << "\nform_clusters: " << pass_config.form_clusters << "\nunfold_batch_matmul: " << pass_config.unfold_batch_matmul << "\noutline_tf_while: " << pass_config.outline_tf_while
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 19:05:30 UTC 2024 - 6.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/lite/quantize_weights_test.cc
return FlatBufferModel::BuildFromFile(model_path.c_str()); } template <typename T> std::vector<T> GetAsVector(const flatbuffers::Vector<T>* vec) { return std::vector<T>(vec->begin(), vec->end()); } class QuantizeWeightsTest : public testing::Test { protected: QuantizeWeightsTest() {} void LoadBasicModel() { input_model_ = ReadTestModel();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 23:15:24 UTC 2024 - 32.3K bytes - Viewed (0) -
tensorflow/compiler/jit/kernels/xla_ops.cc
return *func; } std::vector<int> VectorAttr(OpKernelConstruction* ctx, absl::string_view attr_name) { std::vector<int> vec; OP_REQUIRES_OK_RETURN(ctx, std::vector<int>(), ctx->GetAttr(attr_name, &vec)); return vec; } bool MustCompileAttr(OpKernelConstruction* ctx) { bool must_compile; OP_REQUIRES_OK_RETURN(ctx, false,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 22:46:36 UTC 2024 - 41.4K bytes - Viewed (0)