Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 113 for const_0d (0.17 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/freeze_saved_model_assets.cc

          std::string filename =
              tensorflow::io::JoinPath(saved_model_dir, asset_filename);
          ShapedType shaped_type =
              RankedTensorType::get({1}, TF::StringType::get(builder.getContext()));
          auto const_op = builder.create<TF::ConstOp>(
              asset.getLoc(),
              DenseStringElementsAttr::get(shaped_type, {filename}));
          for (auto init_op : init_table_from_text_file_ops_to_erase) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jan 30 01:12:09 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/fold_broadcast_pass.cc

        if (!binary_op_const_operand) return failure();
        auto bcast_op = lhs_bcast_op ? lhs_bcast_op : rhs_bcast_op;
        auto const_op =
            bcast_op.getOperand().template getDefiningOp<mhlo::ConstantOp>();
        if (!const_op) return failure();
        auto const_val = dyn_cast_or_null<DenseElementsAttr>(const_op.getValue());
        if (!const_val) return failure();
    
        auto result_type =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/tests/constant-fold.mlir

      %const_0 = "tf.Const"() {value = dense<0> : tensor<i32>} : () -> tensor<i32>
      %const_1 = "tf.Const"() {value = dense<1> : tensor<i32>} : () -> tensor<i32>
      %const_64_1 = "tf.Const"() {value = dense<[64, 1]> : tensor<2xi32>} : () -> tensor<2xi32>
      %1 = "tf.Range"(%const_0, %const_10000, %const_1) : (tensor<i32>, tensor<i32>, tensor<i32>) -> tensor<10000xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 31 23:22:24 UTC 2024
    - 36.7K bytes
    - Viewed (0)
  4. tensorflow/cc/ops/standard_ops.h

    #ifndef TENSORFLOW_CC_OPS_STANDARD_OPS_H_
    #define TENSORFLOW_CC_OPS_STANDARD_OPS_H_
    
    #include "tensorflow/cc/ops/array_ops.h"
    #include "tensorflow/cc/ops/candidate_sampling_ops.h"
    #include "tensorflow/cc/ops/const_op.h"
    #include "tensorflow/cc/ops/control_flow_ops.h"
    #include "tensorflow/cc/ops/data_flow_ops.h"
    #include "tensorflow/cc/ops/image_ops.h"
    #include "tensorflow/cc/ops/io_ops.h"
    #include "tensorflow/cc/ops/linalg_ops.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 24 22:31:28 UTC 2018
    - 1.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/output-shapes.pbtxt

        }
      }
      attr {
        key: "_output_shapes"
        value {
          list {
            shape {
              dim {
                size: 1
              }
            }
          }
        }
      }
    }
    node {
      name: "Const0"
      op: "Const"
      attr {
        key: "dtype"
        value {
          type: DT_INT64
        }
      }
      attr {
        key: "value"
        value {
          tensor {
            dtype: DT_INT64
            tensor_shape {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 21 04:07:13 UTC 2021
    - 3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op.cc

      ShapedType new_type = shaped_quantized_type.clone(storage_type);
    
      rewriter.setInsertionPointAfter(op);
      auto const_op =
          rewriter.create<TF::ConstOp>(op.getLoc(), new_type, tensor_proto_attr);
      auto new_identity_op = rewriter.create<TF::IdentityOp>(
          op->getLoc(), const_op.getType(), const_op);
      return new_identity_op.getResult();
    }
    
    Operation* LogicsForUniformDequanization(PatternRewriter& rewriter,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_dynamic_range.cc

            return true;
          }
    
          for (int qi : quantizable_indices) {
            auto const_op = llvm::dyn_cast_or_null<arith::ConstantOp>(
                op->getOperand(qi).getDefiningOp());
            if (!const_op) {
              continue;
            }
    
            DenseFPElementsAttr attr;
            if (!matchPattern(const_op->getResult(0), m_Constant(&attr))) {
              continue;
            }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/freeze_global_tensors.cc

          builder.setInsertionPointToStart(&func.getBody().front());
          auto const_op = builder.create<TF::ConstOp>(global_tensor.getLoc(),
                                                      *global_tensor.getValue());
          args_to_erase.set(val.getArgNumber());
          for (auto read_op : read_variable_ops_to_erase) {
            read_op.getResult().replaceAllUsesWith(const_op.getResult());
            read_op.erase();
          }
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/initialize_variables_in_session_init.cc

      builder.insert(var_handle_op_in_init);
      auto const_op = builder.create<mlir::arith::ConstantOp>(
          session_init_func.getLoc(), tensor_attr.getType(), tensor_attr);
    
      builder.create<TF::AssignVariableOp>(
          session_init_func.getLoc(), llvm::ArrayRef<mlir::Type>{},
          llvm::ArrayRef<mlir::Value>{var_handle_op_in_init->getResult(0),
                                      const_op.getResult()});
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_asset_sinking_pass.cc

            RankedTensorType type = RankedTensorType::get(
                {}, TF::StringType::get(builder.getContext()));
            auto const_op = builder.create<TF::ConstOp>(
                builder.getUnknownLoc(),
                DenseStringElementsAttr::get(type, {filename}));
    
            it = const_ops.insert({asset.getSymName(), const_op}).first;
          }
    
          argument.replaceAllUsesWith(it->second.getOutput());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top