- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 453 for int64Opt (0.15 sec)
-
tensorflow/c/eager/dlpack.cc
} // Checks whether the stride array matches the layout of compact, row-majored // data. bool IsValidStrideCompactRowMajorData(int64_t* shape_arr, int64_t* stride_arr, int ndim) { bool valid = true; int64_t expected_stride = 1; for (int i = ndim - 1; i >= 0; --i) { // Empty tensors are always compact regardless of strides. if (shape_arr[i] == 0) return true;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 15 09:49:45 UTC 2024 - 12.8K bytes - Viewed (0) -
tensorflow/c/eager/c_api.cc
return num_dims; } int64_t TFE_TensorHandleNumElements(TFE_TensorHandle* h, TF_Status* status) { if (h == nullptr) { status->status = tensorflow::errors::InvalidArgument("Invalid handle"); return -1; } int64_t num_elements = -1; status->status = tensorflow::unwrap(h)->NumElements(&num_elements); return num_elements; } int64_t TFE_TensorHandleDim(TFE_TensorHandle* h, int dim_index,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 08:11:23 UTC 2024 - 44K bytes - Viewed (0) -
tensorflow/compiler/aot/codegen_test_h.golden
set_arg_data(1, data); } int64_t* arg1_data() { return static_cast<int64_t*>(arg_data(1)); } int64_t& arg1(size_t dim0, size_t dim1) { return (*static_cast<int64_t(*)[3][4]>( arg_data(1)))[dim0][dim1]; } const int64_t* arg1_data() const { return static_cast<const int64_t*>(arg_data(1)); } const int64_t& arg1(size_t dim0, size_t dim1) const {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 01:20:01 UTC 2024 - 16.6K bytes - Viewed (0) -
tensorflow/c/eager/tfe_monitoring_internal.h
}; struct TFE_MonitoringIntGauge0 : TFE_MonitoringGauge<int64_t, 0> { using TFE_MonitoringGauge::TFE_MonitoringGauge; }; struct TFE_MonitoringIntGauge1 : TFE_MonitoringGauge<int64_t, 1> { using TFE_MonitoringGauge::TFE_MonitoringGauge; }; struct TFE_MonitoringIntGauge2 : TFE_MonitoringGauge<int64_t, 2> { using TFE_MonitoringGauge::TFE_MonitoringGauge; };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Aug 11 01:20:50 UTC 2021 - 5.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_xla_attribute_utils_test.cc
#include "tensorflow/compiler/mlir/tensorflow/ir/tf_dialect.h" namespace mlir::quant { namespace { void PackOperandTestHelper( const llvm::SmallVector<int64_t>& unpacked_shape, const llvm::SmallVector<int8_t>& unpacked_values, int pack_dim, const llvm::SmallVector<int64_t>& expected_packed_shape, const llvm::SmallVector<int8_t>& expected_packed_values) { MLIRContext context;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.5K bytes - Viewed (0) -
tensorflow/c/experimental/next_pluggable_device/c_api.cc
auto* cc_agent = reinterpret_cast<tsl::CoordinationServiceAgent*>(agent); return cc_agent->IsInitialized(); } void TF_CoordinationServiceInsertKeyValue(const char* key, int64_t key_size, const char* value, int64_t value_size, TF_CoordinationServiceAgent* agent, TF_Status* status) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 05:48:24 UTC 2024 - 13.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc
llvm::SmallVector<std::pair<int64_t, llvm::SmallVector<Value, 4>>, 4> AnnotateCompileOpAndGetExecuteArgToWhileArgsMapping( TF::WhileRegionOp while_op, tf_device::ReplicateOp replicate, TF::TPUExecuteAndUpdateVariablesOp execute, tf_device::LaunchOp compile_launch) { Region& body = while_op.getBody(); Region& cond = while_op.getCond(); llvm::SmallVector<std::pair<int64_t, llvm::SmallVector<Value, 4>>, 4> mapping;
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/flatbuffer_operator.h
} template <> inline std::vector<int64_t> GetVector(DenseElementsAttr elements) { auto type = elements.getType(); auto elemType = type.getElementType(); if (elemType.isSignlessInteger(64)) { auto vec = llvm::to_vector(llvm::map_range( elements.getValues<APInt>(), [&](APInt value) -> int64_t { return value.getSExtValue(); })); return std::vector<int64_t>(vec.begin(), vec.end()); }
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/quantization/stablehlo/passes/insert_weight_param.cc
dot.getDotDimensionNumbers(); ArrayRef<int64_t> rhs_contracting_dims = dimension_numbers.getRhsContractingDimensions(); ArrayRef<int64_t> rhs_batching_dims = dimension_numbers.getRhsBatchingDimensions(); int64_t rank = dot.getRhs().getType().cast<TensorType>().getRank(); for (int i = 0; i < rank; ++i) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 05:56:10 UTC 2024 - 10.2K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/test_utils.h
std::vector<DataType> DataTypeSetToVector(DataTypeSet set); // Returns a vector of shapes intended to be "interesting" test cases. // Currently, this returns scalar, 1D vector, 2D matrix, and a 4D tensor shapes std::vector<std::vector<int64_t>> InterestingShapes(); // Returns a TensorHandle of `dtype` and `shape`, filled with `value`. // `dtype` must be an integer dtype, float, or double. // If a TensorHandle cannot be created successfully, this function will
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Aug 11 01:20:50 UTC 2021 - 3.5K bytes - Viewed (0)