- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 1,137 for const2 (0.08 sec)
-
tensorflow/c/kernels.cc
#undef CASE } // namespace } // namespace tensorflow namespace { const tensorflow::AttrValue* GetAttrValue(TF_OpKernelConstruction* ctx, const char* attr_name, TF_Status* status) { auto* cc_ctx = reinterpret_cast<::tensorflow::OpKernelConstruction*>(ctx); const tensorflow::AttrValue* attr = ::tensorflow::AttrSlice(cc_ctx->def()).Find(attr_name);
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/quantization/stablehlo/passes/defer_activation_transpose.cc
PatternRewriter& rewriter) const override { auto transpose_op = cast<TransposeOp>(op.getOperand(0).getDefiningOp()); const auto result_type = mlir::cast<TensorType>(op.getResult(0).getType()); const SmallVector<int64_t> new_result_shape = Permute<int64_t>(result_type.getShape(), kNchwToNhwcPermutation); const TensorType new_result_type =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/lite/quantize_weights.cc
// quantization API TfLiteStatus QuantizeWeights( flatbuffers::FlatBufferBuilder* builder, const tflite::Model* input_model, const tflite::TensorType& inference_type, const absl::flat_hash_set<std::string>& denylisted_ops, const CustomOpMap& custom_op_map, int64_t minimum_elements_for_weights, bool disable_per_channel, bool weight_only_quantization, bool legacy_float_scale) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 23:15:24 UTC 2024 - 9.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/lite/quantize_model.h
// the values with the TOCO quantizer. TfLiteStatus QuantizeModel( absl::string_view model_buffer, const tflite::TensorType &input_type, const tflite::TensorType &output_type, const tflite::TensorType &inference_type, const std::unordered_set<std::string> &operator_names, bool disable_per_channel, bool fully_quantize, std::string &output_buffer,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 23:15:24 UTC 2024 - 2.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_to_string.cc
void Element(size_t i, flatbuffers::ElementaryType /*type*/, const flatbuffers::TypeTable* /*type_table*/, const uint8_t* /*val*/) override { if (i) s += ", "; } }; void ToString(const std::string& serialized_model) { IndentedToStringVisitor visitor(/*delimiter=*/"\n", /*indent=*/" "); IterateFlatBuffer(reinterpret_cast<const uint8_t*>(serialized_model.c_str()),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 15:52:23 UTC 2024 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_import.cc
// TODO(krzysd) Handle function calls StatusOr<Operation*> ConvertOp( const tflite::OperatorT& op, const std::vector<Value>& vals_map, const std::vector<mlir::TensorType>& intermediate_types, Value optional_arg_marker, const std::vector<std::unique_ptr<tflite::OperatorCodeT>>& op_codes, const std::vector<std::string>& func_names, const std::vector<std::unique_ptr<tflite::TensorT>>& tensors, Location loc,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 18:21:50 UTC 2024 - 66.8K bytes - Viewed (0) -
tensorflow/compiler/jit/shape_inference.cc
} Status PropagateShapes(Graph* graph, const std::map<int, InferredShape>& arg_shapes, const std::vector<BackEdgeHelper::BackEdge>& back_edges, ShapeRefiner* shape_refiner) { std::map<const Node*, const Node*> merge_to_next_iteration; for (const auto& e : back_edges) { if (e.src->IsNextIteration() && e.dst->IsMerge()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 31 00:41:19 UTC 2024 - 13K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize_drq.cc
QuantizationUnit quant_op) const { auto [quantized_op, weight_idx] = quant_op; const bool is_narrow_range = true; const bool is_legacy_float = quant_specs_.legacy_float_scale; const bool is_signed = quant_specs_.IsSignedInferenceType(); const int bit_width = quant_specs_.GetQuantizationTypeWidth();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/lift_quantizable_spots_as_functions.cc
Attribute DefaultOrNullAttr(OpBuilder& builder, const Attribute& attr) { if (attr) return attr; return builder.getStringAttr(kNullAttributeValue); } // Checks whether the value of a constant equals the given float, regardless // of the tensor dimension. bool FloatValueEquals(const Attribute& attr, const double value) { const auto fp_attr = mlir::dyn_cast_or_null<DenseFPElementsAttr>(attr);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 04:07:09 UTC 2024 - 9.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/component.cc
absl::Status CalibrationComponent::ExportToSavedModel( ModuleOp module_op, absl::string_view calibration_data_dir, const bool force_regenerate_calibration_data, const absl::string_view dst_saved_model_path) { TF_ASSIGN_OR_RETURN(const std::string checkpoint_dir, GetLocalTmpFileName()); // Clone ModuleOp and function aliases so changes in this pipeline won't
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 14 06:31:57 UTC 2024 - 9.2K bytes - Viewed (0)