Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for GetOperation (0.77 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

      for (const unsigned operand_index : erase_indices.set_bits()) {
        operand_index < num_in_original ? num_in_tensors-- : num_captured_tensors--;
      }
    
      getOperation()->eraseOperands(erase_indices);
      getOperation()->setAttr(
          operand_segment_size_attr,
          DenseI32ArrayAttr::get(
              getContext(), /*content=*/{num_in_tensors, num_captured_tensors}));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

      if (auto whileOp =
              llvm::dyn_cast<WhileRegionOp>(this->getOperation()->getParentOp())) {
        if (&whileOp.getCond() == this->getOperation()->getParentRegion()) {
          // cut off the boolean (the condition itself) at the start
          return MutableOperandRange(
              this->getOperation(), 1,
              this->getOperation()->getOperands().size() - 1);
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

        if (output_shape.value()) {
          changed = RefineResultType(op.getOperation(), op.getResult(),
                                     output_shape.value());
          return changed;
        }
      }
      return changed;
    }
    
    bool ShapeInference::RefineWithInferTypeOpInterface(
        InferTypeOpInterface infer_ti) {
      Operation* op = infer_ti.getOperation();
      if (none_of(op->getResultTypes(), CanBeRefined)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

            /*op=*/op.getOperation(), /*indices=*/ArrayRef<unsigned>{0, 1},
            /*max_bcast_rank=*/6);
      }
    
      // Allows QI8 output when the operands have valid shapes, which are
      // broadcastable shapes up to four dimension or have same shapes.
      if (IsQI8Type(element_type)) {
        return VerifyOperandsHaveSameShapesOrBroadcastableShape(
            /*op=*/op.getOperation(), /*indices=*/ArrayRef<unsigned>{0, 1},
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

        ParseResult $cppClass::parse(OpAsmParser &parser, OperationState &result) {
          return parseOneResultSameOperandTypeOp(parser, result);
        }
        void $cppClass::print(OpAsmPrinter &p) {
          return printOneResultOp(getOperation(), p);
        }
      }];
    
      let hasOptions = 1;
    }
    
    def TFL_AddNOp : TFL_Op<"add_n", [
        Commutative,
        Pure,
        SameOperandsAndResultsScale,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

                                       const std::vector<int32_t>& operands,
                                       const std::vector<int32_t>& results) {
      std::string op_name =
          gather_op.getOperation()->getName().getStringRef().str();
      uint32_t opcode_index =
          GetOpcodeIndex(op_name, tflite::BuiltinOperator_STABLEHLO_GATHER);
    
      std::vector<int64_t> offset_dims_vec(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/optimize.cc

            /*keep_num_dims=*/rewriter.getBoolAttr(fc_op.getKeepNumDims()),
            /*asymmetric_quantize_inputs=*/fc_op.getAsymmetricQuantizeInputsAttr());
        rewriter.replaceOp(fc_op.getOperation(), new_fc.getOutput());
    
        return success();
      }
    };
    
    // Replace ..
    // FC(Mul(lhs, rhs), filter, bias)
    // .. with ..
    // FC(lhs, Mul(filter, rhs), bias)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

      for (auto func : llvm::reverse(private_funcs)) {
        func.getOperation()->moveBefore(&module.getBody()->front());
      }
      for (auto named_func : llvm::reverse(named_funcs)) {
        named_func.func.getOperation()->moveBefore(&module.getBody()->front());
      }
      for (auto named_global_tensor : llvm::reverse(named_global_tensors)) {
        named_global_tensor.global_tensor.getOperation()->moveBefore(
            &module.getBody()->front());
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

      target.addLegalOp<func::CallOp, func::ConstantOp, arith::ConstantOp>();
      target.addLegalOp<mhlo::TupleOp>();
      if (failed(applyPartialConversion(getOperation(), target,
                                        std::move(patterns)))) {
        getOperation().emitError("mhlo to TF legalization failed.");
        signalPassFailure();
      }
    }
    
    }  // end namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

            dimension_numbers.getOutputFeatureDimension(),
            dimension_numbers.getOutputSpatialDimensions());
      }
    };
    
    void UniformQuantizedStableHloToTflPass::runOnOperation() {
      func::FuncOp func_op = getOperation();
      MLIRContext& ctx = getContext();
    
      RewritePatternSet patterns(&ctx);
      patterns.add<RewriteHybridQuantizedConvolutionOp,
                   RewriteHybridQuantizedDotGeneralOp, RewriteUniformDequantizeOp,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
Back to top