Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 123 for getBlob (0.16 sec)

  1. tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc

        // Create the TF op
        OperationState op_state(op.getLoc(), tf_op_full_name);
        op_state.addOperands(op.getOperands());
        op_state.addTypes(op.getResultTypes());
    
        SmallVector<NamedAttribute, 2> attrs;
        std::string parsed_op_name;
        tensorflow::NodeDef node_def;
        if (failed(ParseCustomOption(op.getCustomOption().getValue(), op.getLoc(),
                                     parsed_op_name, attrs, node_def))) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/tensor_array_ops_decomposition.cc

                                                    write.getLoc())});
        elem =
            cutil::AccumulateBuffers(elem, original_elem, builder, write.getLoc());
      }
      buffer =
          cutil::SetElement(index_reshape, buffer, elem, builder, write.getLoc());
      cutil::WriteLocalVariable(local_var, buffer, builder, write.getLoc());
      write.getFlowOut().replaceAllUsesWith(write.getFlowIn());
      write.erase();
      return success();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 02 20:41:19 UTC 2023
    - 40.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/unfuse_batch_norm_pass.cc

            bn_op.getLoc(), bn_op.getVariance(), epsilon);
        multiplier = rewriter.create<mhlo::RsqrtOp>(bn_op.getLoc(), multiplier);
        multiplier = rewriter.create<mhlo::MulOp>(bn_op.getLoc(), multiplier,
                                                  bn_op.getScale());
    
        // Compute rhs = offset - mean * multiplier
        Value rhs = rewriter.create<mhlo::MulOp>(bn_op.getLoc(), multiplier,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/utils/lstm_utils.cc

      weight_transposed_ =
          Transpose2D(&builder_, weight_, weight_type_, fused_func_op_.getLoc());
      projection_transposed_ = Transpose2D(&builder_, projection_, projection_type_,
                                           fused_func_op_.getLoc());
    
      none_ = CreateNoneValue(&builder_, fused_func_op_.getLoc());
      // Extract input to cifg gates via slicing the weight tensor
      SetWeightForInputToCellGate();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h

        Type cast_type = quant_type.castFromExpressedType(expressed_type);
        rewriter.setInsertionPointAfter(const_op);
        auto q = rewriter.create<Q>(const_op->getLoc(), cast_type,
                                    const_op->getResult(0));
        auto dq = rewriter.create<DQ>(const_op->getLoc(), expressed_type, q);
        op.setOperand(input_index, dq.getResult());
        return success();
      }
    
      LogicalResult replaceStatsOp(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/tensor_list_ops_decomposition.cc

      auto new_buffer = builder.create<TF::IdentityOp>(
          pop.getLoc(), ArrayRef<Type>{buffer.getType()}, ArrayRef<Value>{buffer});
      auto new_size = builder.create<TF::SubOp>(
          pop.getLoc(), ArrayRef<Type>{size.getType()},
          ArrayRef<Value>{size, cutil::GetR1Const({1LL}, builder, pop.getLoc())});
      auto element = cutil::GetElement(new_size, new_buffer, builder, pop.getLoc());
      pop.getOutputHandle().replaceAllUsesWith(new_buffer);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc

        // Calculates the broadcast shape using BroadcastArgs op.
        Value cond_shape = GetShape(cond, op->getLoc(), rewriter);
        Value lhs_shape = GetShape(lhs, op->getLoc(), rewriter);
        Value rhs_shape = GetShape(rhs, op->getLoc(), rewriter);
        auto broadcast_shape_value =
            rewriter
                .create<TF::BroadcastArgsOp>(op->getLoc(), lhs_shape.getType(),
                                             lhs_shape, rhs_shape)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 20:06:54 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/stack_ops_decomposition.cc

          cutil::ReadLocalVariable(pop.getHandle(), builder, pop.getLoc());
      auto size = cutil::ReadLocalVariable(it->getSecond(), builder, pop.getLoc());
      auto new_size = builder.create<TF::SubOp>(
          pop.getLoc(), ArrayRef<Type>{size.getType()},
          ArrayRef<Value>{size, cutil::GetR1Const({1}, builder, pop.getLoc())});
      auto pop_val = cutil::GetElement(new_size, stack_val, builder, pop.getLoc());
      pop.replaceAllUsesWith(pop_val);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.cc

        auto slice_begin_const =
            rewriter->create<TFL::ConstOp>(split_op->getLoc(), slice_begin_attr);
        auto slice_size_const =
            rewriter->create<TFL::ConstOp>(split_op->getLoc(), slice_size_attr);
    
        auto slice_op = rewriter->create<TFL::SliceOp>(
            split_op->getLoc(), current_output_type, input, slice_begin_const,
            slice_size_const);
    
        // Rewire output.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op.cc

          rewriter.create<func::FuncOp>(input_op->getLoc(), func_name, func_type);
    
      OpBuilder::InsertionGuard guard = OpBuilder::InsertionGuard(rewriter);
      ArrayRef<Type> inputs = quantization_func.getFunctionType().getInputs();
      Block* block = rewriter.createBlock(
          &quantization_func.getBody(), quantization_func.begin(), inputs,
          SmallVector<Location>(inputs.size(), quantization_func.getLoc()));
      func_input_arg = block->getArgument(0);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top