- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 453 for int64Opt (0.12 sec)
-
tensorflow/c/c_api_test.cc
} } void TestEncodeDecode(int line, const std::vector<string>& data) { const int64_t n = data.size(); Status status; for (const std::vector<int64_t>& dims : std::vector<std::vector<int64_t>>{{n}, {1, n}, {n, 1}, {n / 2, 2}}) { // Create C++ Tensor Tensor src(tensorflow::DT_STRING, TensorShape(dims)); for (int64_t i = 0; i < src.NumElements(); ++i) { src.flat<tstring>()(i) = data[i]; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 15 03:35:10 UTC 2024 - 96.9K bytes - Viewed (0) -
tensorflow/c/kernels.cc
TF_DataType dtype, const int64_t* dims, int num_dims, size_t len, TF_Status* status) { TF_SetStatus(status, TF_OK, ""); auto* cc_ctx = reinterpret_cast<::tensorflow::OpKernelContext*>(context); tensorflow::gtl::ArraySlice<const int64_t> dimarray( reinterpret_cast<const int64_t*>(dims), num_dims); tensorflow::Tensor* tensor;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 22:53:47 UTC 2024 - 36K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/api/v2/tf_dialect_to_executor_test.cc
return absl::OkStatus(); } DialectRegistry registry_; MLIRContext context_; OwningOpRef<mlir::ModuleOp> mlir_module_; }; TEST_F(TensorflowDialectToExecutorTest, ConvertsToExecutor) { CellReader<int64_t> compilation_status(kExportStreamzName); TF_ASSERT_OK(CreateMlirModule("empty_func.mlir")); TF_EXPECT_OK(ExportFromTensorflowDialectToExecutor(*mlir_module_));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 13 23:22:50 UTC 2024 - 4.4K bytes - Viewed (0) -
tensorflow/c/tf_file_statistics.h
#ifndef TENSORFLOW_C_TF_FILE_STATISTICS_H_ #define TENSORFLOW_C_TF_FILE_STATISTICS_H_ #include <stdint.h> typedef struct TF_FileStatistics { // The length of the file in bytes. int64_t length; // The last modified time in nanoseconds. int64_t mtime_nsec; // Whether the name refers to a directory. bool is_directory; } TF_FileStatistics; // TODO(b/139060984): `tensorflow::FileStatistics` from
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 27 20:21:15 UTC 2022 - 1.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/uniform_quantized_types.h
MLIRContext& context, double scale, int64_t zero_point, bool narrow_range = false); // Creates a `UniformQuantizedType` with the given `scale` and `zero_point`
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/perception_ops_utils_test.cc
func->setAttr("tf._implements", attr_value); return func; } func::FuncOp createMaxUnpoolingFunc( mlir::Builder* builder, const SmallVector<int64_t, 4>& input_shape, const SmallVector<int64_t, 4>& output_shape) { auto input_type = RankedTensorType::get(input_shape, builder->getF32Type()); auto indices_type = RankedTensorType::get(input_shape, builder->getI64Type());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Sep 29 21:02:21 UTC 2022 - 7.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/utils.h
} ConstantOp GetScalarConstOfType(Type ty, Location loc, int64_t raw_value, OpBuilder* builder); ConstantOp GetScalarNegZeroOfType(Type ty, Location loc, OpBuilder* builder); // Converts an ArrayAttr to a 1D 64-bit dense elements attribute. DenseIntElementsAttr GetI64ElementsAttr(ArrayAttr attr); DenseIntElementsAttr GetI64ElementsAttr(llvm::ArrayRef<int64_t> values,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 2.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/ir/UniformSupport.cc
// Scan the elements of the dense elements attributes and quantize them by // using the right quantization parameters. int64_t flatten_index = 0; auto shape = type.getShape(); int64_t chunk_size = std::accumulate(std::next(shape.begin(), quantization_dim_ + 1), shape.end(), 1, std::multiplies<int64_t>()); Type new_element_type = IntegerType::get(attr.getContext(), storage_bit_width_);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 02:10:16 UTC 2024 - 4.3K bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device_lib.cc
const TFE_OpAttrs* attributes, int expected_max_outputs, CancellationManager& cancellation_manager, absl::optional<int64_t> step_id = absl::nullopt); // Block until the previous `StartExecute` operation has executed. Forwards // the status from `TFE_Execute` and returns outputs if the status is OK.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Feb 09 07:47:20 UTC 2024 - 25.4K bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device_lib.h
private: ParallelTensor(const ParallelDevice& device, std::vector<TensorHandlePtr> tensors, absl::Span<const int64_t> shape, const TF_DataType dtype) : device_(device), tensors_(std::move(tensors)), shape_(std::vector<int64_t>(shape.begin(), shape.end())), dtype_(dtype) {} ParallelTensor(const ParallelDevice& device,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 25 15:21:13 UTC 2023 - 12.9K bytes - Viewed (0)