Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 90 for output_types (0.17 sec)

  1. tensorflow/compiler/mlir/lite/utils/lstm_utils_test.cc

      auto output_types = fused_lstm_func_.getFunctionType().getResults();
      SmallVector<int64_t, 2> output_shape{1, mlir::ShapedType::kDynamic};
      EXPECT_EQ(mlir::cast<RankedTensorType>(output_types[0]).getShape().size(),
                output_shape.size());
      for (int i = 0; i < output_shape.size(); i++) {
        EXPECT_EQ(mlir::cast<RankedTensorType>(output_types[0]).getDimSize(i),
                  output_shape[i]);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.h

          }
    
          // Collect all the quantized outputs and replace them by the results of
          // the new quantized op.
          llvm::SmallDenseMap<Value, int> outputs_replaced;
          SmallVector<Type, 4> output_types;
          output_types.reserve(candidate_op->getNumResults());
          for (const auto& enumerated_result :
               llvm::enumerate(candidate_op->getResults())) {
            Value result = enumerated_result.value();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc

                                      SmallVectorImpl<Type>* output_types) const;
    
      // Creates the TF op and also the necessary tfr.cast ops to replace the
      // original TFR call op.
      LogicalResult CreateAndReplaceOp(
          PatternRewriter& rewriter, CallOp call_op,
          const SmallVectorImpl<Type>& output_types,
          const SmallVectorImpl<Value>& inputs, const NamedAttrList& attr_list,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/common/lift_as_function_call.cc

                                         const StringRef func_name,
                                         const TypeRange output_types,
                                         const ValueRange args) {
      TF::PartitionedCallOp call_op = builder.create<TF::PartitionedCallOp>(
          location, output_types, args,
          FlatSymbolRefAttr::get(builder.getStringAttr(func_name)),
          /*config=*/"", /*config_proto=*/"", /*executor_type=*/"");
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/post_quantize.cc

          Value dequantized_result = dequantize_op.getInput();
          output_types.push_back(dequantized_result.getType());
          terminator->setOperand(i, dequantized_result);
          returned_op->erase();
        } else {
          output_types.push_back(returned_value.getType());
        }
      }
      auto new_func_type = builder.getFunctionType(input_types, output_types);
      func.setType(new_func_type);
    }
    
    enum RemoveVolatileOpsType {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/utils/lstm_utils.cc

          size_of_splits = dim / splits;
          output_shape.push_back(size_of_splits);
        } else {
          output_shape.push_back(dim);
        }
      }
    
      SmallVector<mlir::Type, 4> output_types;
      for (int i = 0; i < splits; ++i) {
        output_types.push_back(
            mlir::RankedTensorType::get(output_shape, input_type.getElementType()));
      }
      auto size_of_splits_op = Create1DConstantOp(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/utils/xla_sharding_util.cc

          shape[split_dimension] = shape[split_dimension] / num_split;
          output_type =
              mlir::RankedTensorType::get(shape, input_type.getElementType());
        }
      } else {
        output_type = input_type;
      }
    
      // Creates a split op that splits |src_input| along |split_dimension|.
      llvm::SmallVector<mlir::Type, 4> output_types(num_split, output_type);
      *split_op = builder->create<mlir::TF::SplitOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 21:28:13 UTC 2024
    - 34K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc

        arg_types.push_back(arg.getType());
        arg_locs.push_back(arg.getLoc());
      }
    
      SmallVector<Type> output_types;
      for (const Value output : xla_call_module_op.getOutput()) {
        output_types.push_back(output.getType());
      }
    
      entry_func_op.setFunctionType(
          rewriter.getFunctionType(arg_types, output_types));
    
      // Replace argument types and locs.
      Block& entry = entry_func_op->getRegion(0).front();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 06:04:36 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/tf_data_optimization.td

    def FuseMapAndBatch : Pat<
      (TF_BatchDatasetV2Op
         (TF_MapDatasetOp $input_dataset, $other_arguments, $f, $output_types,
            $output_shapes, $use_inter_op_parallelism, $preserve_cardinality,
            $force_synchronous, $map_dataset_metadata),
         $batch_size, $drop_remainder, $parallel_copy, $batch_output_types,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc

        llvm::SmallVector<Type, 4> output_types;
        auto result = tensorflow::GetOutputTypesForLogicalDeviceComputation(
            core, output_sharding_config, cluster_func, &output_types,
            &(*cluster_to_core_index)[core]);
        if (failed(result)) return failure();
    
        for (Type t : output_types) concatenated_output_types.emplace_back(t);
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 29.7K bytes
    - Viewed (0)
Back to top